Question: Write a C program that do the following: Declare an integer array of size 4 called new Array Ask the user to enter a number

 Write a C program that do the following: Declare an integer

Write a C program that do the following: Declare an integer array of size 4 called new Array Ask the user to enter a number of four digits Save each digit of the number in the corresponding index in the array. Example: 4321 new Array(0) > 1 new Array[1] 2 new Array[2] 3 new Array(3) 4 Declare an integer array of size 2 called the Result. Save the addition of the second and last elements of the new Array array as the first element in the the Result array, and save the multiplication of the first and third elements of the newArray array in the second element in the the Result array. Example: based on the previous example: the Result[0] 2+4 = 6 theResult[1] 1*3 = 3 Print the content of the result array. The addition of the second and last elements is RESULT The multiplication of the first and third elements is RESULT 2001

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!