Hello i want to ask is my algorithm is write or note please reply immediately i have exam in two days
Question is
Write an algorithm which Compute the Sum of first 100 Natural Numbers using for loop.
Hello
Could you please write your algorithm in a clean fashion here?
Several people saw your topic yet no one answered.
I understand why.
Help others help you
Cheers.
1 Like
Yeah sure sorry for inconvenience
Question: Write an algorithm which Compute the Sum of first 100 Natural Numbers using for loop.
Algorithm:-
Start.
Set SUM := 0.
Repeat for K := 1 to K<=100 by K++ :
SUM +=K.
[End of Loop]
Write SUM , "Sum of the first 100 Natural Numbers is : "
End
I don’t know how you write pseudo-code in English but LGTM ( Looks Good To Me).