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

 Question 3: Write a C program that do the following: Declare

Question 3: Write a C program that do the following: Declare an integer array of size 4 called number. 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 number[0] 1 number[1] 2 number[2] 3 number[4] 4 Declare an integer array of size 2 called R. Save the multiplication of the first and last elements of the number array as the first element in the R array, and save the addition of the second and third elements of the number array in the second element in the Rarray. Example: based on the previous example: R[0] 1*4=4 R[1] 2+3 - 5 Print the content of the Rarray. The multiplication of the first and last elements is RESULT The addition of the second and third elements is RESULT The following are sample input/output: Enter a number of four digits: 4321 The multiplication of the first and last elements is 4 The addition of the second and third elements is 5

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!