write the c++program output for 20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35
Answers
Answered by
1
Answer:
#include <iostream>
using namespace std;
int main()
{
int i,sum=0;
for(i=20;i<=35;i++){
cout<<i<< ' , ' ; //displaying the list of numbers from 20 to 35
sum=sum +i ;
}
cout<<"The Sum =" <<sum; //Displays the sum of the numbers
return 0;
}
o/p:
20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,
The Sum =440
Answered by
2
THE C++ Program output 20,21,,,,,,,,,,,,,35
is 440
Similar questions
Computer Science,
4 months ago
English,
4 months ago
Physics,
8 months ago
Chemistry,
11 months ago
Physics,
11 months ago