what is the output that it prints?.....is it a pattern or something constant?....if you can't tell, put in a system pause or a scanf() or something to make it stop every ten lines or so...
what is the output that it prints?.....is it a pattern or something constant?....if you can't tell, put in a system pause or a scanf() or something to make it stop every ten lines or so...
I think it's stuck printing "Enter next number:<EOF> to stop", because when I make a remark (*/) out of the second while loop, it's still stuck in the endless printloop.
I figured out it was due to the EOF define I used.
I just deleted that & changed it to zero instead , now it works.
Still can't figure out why it didnt work with the EOF though oh well , thanks for helping everyone!!
You're not even using EOF anywhere in your code and something like scanf() probably uses EOF. You're best off not redefining a C standard #define. You should be able to get rid of your #define altogether.Originally Posted by Cmuppet
If you understand what you're doing, you're not learning anything.
I did that allready , & it works fine now