Computer Science, asked by aaryasuman4717, 7 days ago

Find the algorithm for the sum of a square of two nombers m and n.please help me

Answers

Answered by snehasn2006
0

Answer:

Explanation:

Algorithm for accept a number from user and calculate sum of square:

[Sum of square procedure:accept number num from user, and set sum=0 and calculate sum of square.]

Step 1. Start

Step 2. Read number num

Step 3. [Initialise]

      sum=0, i=1

Step 4. Repeat step 4 through 6 until i<=num

Step 5. sum=sum+(i*i)

Step 6. i=i+1

Step 7. print the sum of square

Step 8. stop

[end of loop step 4]

[end of sum of square procedure]

Similar questions