draw a flowchart and write a algorithm to do sum of 10 elements read from user.
Answers
Answered by
0
Answer:
Declare a variable n, i and sum as integer; Read number n ; for i upto n increment i by 1 and i=1 { sum=sum+i; } Print sum; Here in this Algorithm we declare 3 variables n for storing the number, i for running the for loop and sum for storing the sum.
Similar questions