Expression syntax

Hello, I am getting Expression syntax message and I cannot figure out what's wrong. This program will print all the odd numbers between 0 and the one the user enters, in cshell. I think my logic is either good or almost there, but i dont see the errors. I think it could be the spaces between characters, maybe? Thanks !
Monika

This is what I have: odds:

#!/bin/csh
# Print out all the odd numbers between 1 and a number user specifies
# If user enters a negative number, print out an error message
echo "Enter your number: "
set number = $<
set x=1
while ($x <=$number)
echo $x
@x =$x + 2
end

You need a space between the '@' and the variable. Try

@ x=1
while ($x <=$number)
echo $x
@ x += 2
end