Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
14.2k views
in Computer by (72.4k points)

Write an algorithm to compute sum of the square of N numbers.

1 Answer

0 votes
by (89.4k points)
selected by
 
Best answer

The algorithm as :

Step 1: Read N.

Step 2 : Let ctr = 0, sum = 0.

Step 3: Read Num.

Step 4 : ctr = ctr + 1.

Step 5: Compute the square of the number i.e., = sqr (Num * Num).

Step 6 : sum = sum * sqr.

Step 7: If ctr is less than N then repeat steps 3 to 6. 

Step 8: Print sum.

Step 9: End.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...