Wow, that was a stupid question, wasn't it ?. But the same code produced the exact result I wanted
in the MSVC environment.!!!. I never believed compilers have their own mind. Thanks for the tip
sheepishly
ranjith
> you dont always get your first number as 0...
> if you enter a negative number for your first number
> then you get -1 for that number in your output!!....
>
> to read short int---> scanf("%hd",&first).
>
> Ricardo.
|