Dear BhaktaBionic,
There are syntax errors in your C++ program.
1. No filename is provided after #include. As I can see, the required filename here is < iostream.h >
(Note, I have eddited the message to introduce white space character after < and before >. In reality, these white space characters should not be there. But, in this forum, it is required as otherwise < and > are treated as beginning and end of html tags).
2. The variable X is undeclared.
3. In C++, there is no keyword "then". Are you mixing Basic here?
4. There is < before else. That is wrong. Instead of <, you should use ; (semicolon).
[This message has been edited by Avinash (edited 01-26-2002).]