Q. To find sum of n given numbers.
Answer :-
Algorithm :-
1. Start
2. Sum = 0
3. While True
Input number
Sum += number
Choice = input to quit enter quit
If choice == quit
Break
4. Print Sum
5. Stop
Pseudocode :-
Sum = 0
While True
N = input a number
Sum equal to sum + n
Choice = input to quit enter quit
If choice is quit
Break
Display sum
Flow Chart :-
Click on image for clear view.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )