13) sum of the first five natural numbers algorithm and flowchart
Answers
Answered by
0
Answer:
15
Explanation:
1+2+3+4+5=15 it is your solution
i think its help you
thankyou
Answered by
0
Answer:
This is very quick question in this type questions a formula is……
S=n(n+1)/2
hear s= sum of n number
see the image for flowchart
Algorithm:
1.)Start
2.)Declare a variable of type int i=1 and sum=0
3.)Iteration
for i=1 and i<=5
{
sum = sum + i
increment i = i + 1
}
4.)Print Sum
5.)Stop
Attachments:
Similar questions
Hindi,
2 days ago
Social Sciences,
2 days ago
Physics,
2 days ago
English,
5 days ago
Biology,
5 days ago
India Languages,
8 months ago
Biology,
8 months ago