I Write a program that given the following array, reverses all array elements an
ID: 3668282 • Letter: I
Question
I Write a program that given the following array, reverses all array elements and then prints them. int x[] = 1,2,3,4,5,6,7,8,9,10}; Write a program to define a ID array of 1000 element and fill it with a random values (using rand() function) between I and 1000 (integers), than searches and counts the number of values that can be exactly divided by 5. Finally print these values with their index numbers. Write a program to compute the sum of two matrices and than print it. Firstly user will be asked to enter the order of matrix (number of rows and columns) and than two matrices. For example if the user entered order as 2, 2 i.e. two rows and two columns and mettle. as First Matrix:-1 2 3 4 Second Matrix'-4 5 -1 5 Than output of the program (sum of First and Second matrix) will be 5 7 2 9Explanation / Answer
A......
B.....
For a = 1243 and b = 100
a % b = 1243 % 100 = 43
For a = 99 and b = 100
a % b = 99 % 100 = 99
For a = 1000 and b = 100
a % b = 1000 % 100 = 0
C.....
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.