Integer i,j,sum, n;
Set sum=0, n=7;
Repeat for i=1 to n
Repeat for j=1 to i
sum=sum+j
End loop
End loop
Print sum
Answers
Answered by
0
Answer:
I think sum is 21.
Explanation:
sum=0+1
1+2=3
3+3=6
6+4=10
10+5=15
15+6=21
Answered by
0
We recall the concept of program
Program is a procedure for solving a problem with a computer
Given:
Repeat for i=1 to n
Repeat for j=1 to i
sum=sum+j
From above we get,
When
When
When
The sum is
Similar questions
Social Sciences,
3 months ago
English,
3 months ago
English,
3 months ago
Computer Science,
7 months ago
Science,
7 months ago
Science,
11 months ago
English,
11 months ago
English,
11 months ago