0

How to write program that add two numbers,and it can circulately calculate?

11th Oct 2016, 4:26 AM
lengmao
lengmao - avatar
3 Answers
+ 1
please explain what you mean by "circularly calculate". perhaps give an example of some sample input and output that you would expect.
11th Oct 2016, 5:25 AM
DevCoder (John Sullivan)
DevCoder (John Sullivan) - avatar
0
I want to write like this sum=a+b,this expretion is write by loop
11th Oct 2016, 5:34 AM
lengmao
lengmao - avatar
0
sum=o for(i.....)//how much u want to repeat ur loup { cin>>a>>b; sum=sum+a+b; }
11th Oct 2016, 8:58 AM
boutheina