Fundamentals of Computer Programming - Old Questions

4. Write a program that uses a “while” loop to compute and prints the sum of a given numbers of squares. For example, if 4 is input, then the program will print 30, which is equal to 12+22+32+42


6 marks | Asked in 2066