Write a program that reads in 5 numbers from the user storing the numbers in an array (can be static or dynamic). Then prints the sum of the squares of all of the numbers in the array.
Sample Output: Enter a number: 3 Enter a number: 5 Enter a number: 6 Enter a number: 4 Enter a number: 3 The sum of the squares of your numbers is: 4.2Subscribe our channel for more SOLUTION
No comments:
Post a Comment