write a program to calculate the sum of first 10 even no. with the help of while loop in c++
Answers
Answered by
1
int a = 2, i=0
while(i<10){
a=a+2
cout<<a;
i++;
}
while(i<10){
a=a+2
cout<<a;
i++;
}
Similar questions