5. What will be the value of sum after each of the following nested loops is
i
int sum = 0;
for (int i = 0; i <= 10; i++)
for (int j = 0; j <= 10; j++)
sum += i;
int sum = 0;
for (int i = 1; i <= 3; i++)
for (int j = 1; j <= 3; j++)
sum = sum + (i + j);
ii.
Answers
Answered by
1
Answer:
Explanation:
It will show nothing because due to missing print statement
Answered by
0
Answer:
I think you are mad Atul.
Explanation:
(i) result of sum are:
0, 11,33 ,66, 110, 165,231 , 308 , 396,495,605
(ii) result of sum are :
9 , 21 , 36
I hope it will help you
Similar questions
Social Sciences,
6 months ago
Math,
6 months ago
Math,
6 months ago
English,
1 year ago
Psychology,
1 year ago