Question: 1- Create a main function in C where you will define an integer variable x with an initial value of 100 and print on
1- Create a main function in C where you will define an integer variable x with an initial value of 100 and print on in the console. 2- Create an array Arr having 10 numbers and write a for loop to print these values on the console. 3- Create an infinite while loop which will increment the value of i by 1 for each iteration and print it. Terminate the while loop when i reaches 20. 4- Create two integer variables with some initial values in the main program. Pass these variables as arguments to a function where you calculate the product of these two numbers and return it. Print the calculated value in the main program. 5- Use the array Arr you created in step 2 to pass to a function which calculates the maximum value of the array and return.
Step by Step Solution
3.48 Rating (161 Votes )
There are 3 Steps involved in it
Certainly Below is an example C program that accomplishes the tasks youve outlined include Function ... View full answer
Get step-by-step solutions from verified subject matter experts
