For which value k does it output 75,62?
Or what do you mean by 75,62??
For which value k does it output 75,62?
Or what do you mean by 75,62??
Last edited by Shakti; 01-14-2013 at 08:19 AM.
I have found the problem. Its not in the sourcecode.I repeat.. Its not the source code. Its actually in the display window of the program.when upto k<298 the program works fine. but when k=299 it omits the first result 2. when 300 than it omits 2 and 3, and go on!! Is there any way so that I can expand the display window of the command. I am using windows 7 and codeblocks. if I remove the endl statement than it displays all the result. clearly my window has not enough space for 998 lines.
Write everything to a file and you should get all the output.