**No, This is not an assignment **

Okay, so I got an exam about algorithm... it has 5 questions on it.

Here's one of the questions

"write an algorithm of the first set of Fibonacci sequence"

I wrote

```
Int x = 0, y = 1, temp = 0;
for(int i = 0; i < 9; i++)
{
temp = x;
x = y;
y = y + temp;
print(y);
}
```

**Then I got a Zero Score**

I asked my professor why and then he said

It's not an algorithm. Algorithm should be:

1. Independent on a programming language. it should be applicable to all programming language. What I did is not applicable to Visual Basic or .Net

2. Should not contain any data types. That means there is no Int or string

3. Does not contain any syntax

So the question is, is he right?? I thought algorithms can just be any kind of programming language or pseudo-code?? Or does it really matter???

It's soo unfair, I should have gotten a perfect score =/