Step 1 : Start
Step 2 : Read Limit
Step 3 : i = 1, Sum = 0
Step 4 : if i <= Limit then go to Step 5
else go to Step 8
Step 5 : Print i
Step 6 : Sum = Sum + i
Step 7 : i = i + 1 , then go to Step 4
Step 8 : Print Sum
Step 9 : Stop
else go to Step 8
Step 5 : Print i
Step 6 : Sum = Sum + i
Step 7 : i = i + 1 , then go to Step 4
Step 8 : Print Sum
Step 9 : Stop
No comments:
Post a Comment