Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

Write a c++ program that accept a positive no. and then display the sum of all the no. form 1 up to the no. imputed. (for loop) sample run: Enter a no: 5 The sum is: 15

OpenStudy (anonymous):

int sum=0; for(int i=0;i<5;i++) {sum=sum+i; } cout<<sum<<endl;

OpenStudy (anonymous):

1+2+3+4+5= 15

OpenStudy (anonymous):

oh. . i mean any positive number imputed.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!