i am able to write the program in dev cpp,compile it without errors but not able to run it...please help me so that the output is visible
Three answers:
Eric
2009-06-26 08:49:33 UTC
is this a GUI or does it run in a DOS window.
Is there any errors being printed?
or is this what it looks like when you run it.
prompt> myprogram
prompt> _ ( "_" is cursor)
?
2016-10-03 08:30:28 UTC
only use a variable, sum, upload the numbers interior the loop and then print exterior the loop. upload this till now than the loop: int sum = 0; interior the loop located: sum = sum + n; after the loop, print: printf("The sum is: %d",sum);
anto
2009-06-26 09:55:57 UTC
Add to your code:
system("pause");
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.