Question: Create an array of 5 integers (any numbers you want). Print each number in the array plus 50 Create an array of 5 values of
Create an array of 5 integers (any numbers you want). Print each number in the array plus 50 Create an array of 5 values of type double. Your program will print the average of all these values. Create an array of 5 integer values. Your program will print the PRODUCT of all numbers in the array. Create a program that asks the user to TYPE 10 integer values of an array. After the user types these numbers, the program will print each number squared. (Use a for loop) Create a program that asks the user to type 5 integer values. After getting the values, your program will then display the consecutive integers whose difference is minimum. For example, if had the following array values: {40, 5, 7, 100, 17} The program would display 5 and 7, since they are consecutive in the array, and since their difference is 2 (the smallest)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
