0
Fill in the blanks to calculate the sum of all whole numbers from 1 to 100.
int sum = 0; (int x=1;x<=100; ++) { += x; } Console.WriteLine(sum);
3 Answers
+ 8
int sum = 0;
for (int x=1; x<=100;
x++) {
sum += x;
}
Console.WriteLine(sum);
+ 2
int sum = 0;
for (int x=1; x<=100;
x++) {
sum += x;
}
Console.WriteLine(sum);
0
Thanks G, helped an idiot cheat. đ€Łđ€Łđ€Ł