Write a c plus plus program to find the sum of first 10 even numbers
Answers
Answered by
0
using namespace std;
int main()
{
int i=1,sum=0;
for(int i=1;i<=MAX;i++)
if(i%2==0)
sum+=i;
cout<<"First Ten Even Numbers Sum is : "<<sum<<endl;
return 0;
}
Answered by
0
Here is your answer mate..✔✔✌✍
Attachments:
Similar questions