Computer Science, asked by rithi4112, 4 months ago

write an algorithm to find sum of nth times of a number

Answers

Answered by maha999
1

Step 1: Start

Within a loop

Step 2: Initialize a variable to 1 (say x=1)

Step 3: Specifiy the condition

In this case x<=50

Step 4: Increment the variable by 1

using increment operator x++

OR

simply x+=1(x=x+1)

Step 5: Print the value of variable

Terminate the loop

Step 6: Stop

Similar questions