0
Question is to print the sum of numbers from 20-33 by using while loop using cpp
Can anyone solve and send me
5 Answers
+ 2
int sum = 0;
for(int i = 20; i < 34; ++i){
sum = sum + i;
}
+ 2
summ wil store a summ from 22 to 33 include both numbers
Firstly you add 22, then 23, then 24 and so on
0
Maria Vasilyova can u explain what will sum will store. Because I understand that first i will use 20 to add but what is the sum used for
0
Ok