Question: please solve using C language and do not use loops Question 3: Write a C program that do the following: Declare an integer array of
please solve using C language and do not use loops
Question 3: Write a C program that do the following: Declare an integer array of size 4 called my 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 my Array(0) > 1 myArray[1] 2 myArray[2] 3 my Array(3) 4 Declare an integer array of size 2 called result Save the addition of the first and last elements of the myArray array as the first element in the result array, and save the multiplication of the second and third elements of the myArray array in the second element in the result array Example: based on the previous example: result[0] 1+4-5 result[1] 2*3 = 6 Print the content of the result array. The addition of the first and last elements is RESULT The multiplication of the second and third elements is RESULT The following are sample input/output: Enter a number of four digits: 4321 The addition of the first and last elements is 5 The multiplication of the second and third elements is 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
