Computer Science, asked by manuIndhu13, 9 months ago

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 Anonymous
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 Anonymous
2

THE C++ Program output 20,21,,,,,,,,,,,,,35

is 440

Similar questions