Write a program that reads 9 integers and store them in 2D array. Write the following tasks using functions: 1-Function MinR to find minimum value in right diagonal. 2-Function MaxL to find the second max value in the left diagonal. 3-Function CountPrimes to Find the number of prime numbers in the 2D array. 4- Function Swap left diagonal with right diagonal. 5- Function SumRow to find the summation of values in each row.
Question
Write a program that reads 9 integers and store them in 2D array. Write the following tasks using functions:1-Function MinR to find minimum value in right diagonal.2-Function MaxL to find the second max value in the left diagonal.3-Function CountPrimes to Find the number of prime numbers in the 2D array.4- Function Swap left diagonal with right diagonal.5- Function SumRow to find the summation of values in each row.
Leave an answer
You must login or register to add a new answer .