Yes, do write. That's what you always have to do when you have got a homework-program.
Chat with our AI personalities
Did you know that memory allocation is not needed to display the matrix? However, the C program is to find the sum of all the elements.
int matrix[][]; // the matrix to find the max in int max = matrix[0][0]; int r,c; for(r = 0; r < 3; ++r) { for(c = 0; c < 3; ++c) { if(matrix[r][c] > max) { max = matrix[r][c]; } } } // max is now the maximum number in matrix
program to find maximum of two numbers using pointers
VBnet program to find the prime numbers between 100 to 200?
Yes, do write, or if you're too lazy to your homework, use google.