Question: 1. Write a program that shows the square of even numbers from 1-20. The output of the program is given below: The square of even


1. Write a program that shows the square of even numbers from 1-20. The output of the program is given below: The square of even numbers from 1 - 20 are: 4 16 36 64 100 144 196 256 324 400 Use a while loop to solve the above problem. 2. Write a program that asks the user to enter 10 numbers. The program then counts the total number of Even & Odd numbers entered and shows the count to the user. A sample output of the program is given below: Please enter 10 numbers: 37 4 66 73 9 71 493 88 2 11 The total count of Even number(s) entered is (are): 4 The total count of Odd number(s) entered isare) 16 Use a while loop to solve the above problem. Curtin Univers Copyright of Curtin Univ 3. Write a program that asks a user to enter 10 numbers (integer). The program then calculates the total count of numbers which are divisible by 5 and displays the count to the user. Solve the above problem in three different ways: a. First use a while loop to solve the problem. b. First use a do...while loop to solve the problem. C. First use a for loop to solve the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
