Question: 1) Write a C program that consists of a main function and a sub function. Your main function prompt for and read in three integers
1) Write a C program that consists of a main function and a sub function. Your main function prompt for and read in three integers from the keyboard. It should then call sub, passing it via the parameter mechanism the three integers. sub should determine the sum of the three integers and return it via a return statement. main should then display the theree integers and the sum like this: Three integers = _, _, _ sum = ___ Use 5, -3, 1 for the three integers
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
