Computer Science, asked by riser, 1 year ago

write a program to calculate the sum of first 10 even no. with the help of while loop in c++

Answers

Answered by Anonymous
1
int a = 2, i=0
while(i<10){
a=a+2
cout<<a;
i++;
}
Similar questions