Question: 1- Write a program to declare and initialize an array of size 5 and place odd numbers 3, 5, 7,9 and 11 in it. Declare

1- Write a program to declare and initialize an array of size 5 and place odd numbers 3, 5, 7,9 and 11 in it. Declare and initialize another array of size 5 and place even numbers 4, 6, 8,10 and 12 in it. Write a for loop to add each element and place it in a third array of the same dimensions. Display each array. 2- Write a program to display an array of size 5 in reverse order. Test your program with the odd array you defined in previous program.

3- Write the following two functions (part-a and part-b) the main program should test the two functions. a Write a function that returns a two-digit random number. In other words the range must be 10 to 99. b Write a function that generates random numbers in the range of -5 to 17. c Write a main program to test your code. Run it 100000 times and make sure each of the numbers are within that range. (C Language)

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!