Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/venkat/old/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/venkat/old/IIT2015113_1.c
#include<stdio.h>

int highMatrix(int A[100][100],int r,int c){
	int max=A[0][0],p,q;

	for(p=0;p<r;p++){
		for(q=0;q<c;q++){
			if(A[p][q]>max){
				max=A[p][q];
			}
		}
	}

	return max;
}


int main(){
	int matrixA[100][100],row,col;
	int i,j,maxDig;

	scanf("%d %d",&row,&col);

	for(i=0;i<row;i++){
		for(j=0;j<col;j++){
			scanf("%d",&matrixA[i][j]);
		}
	}

	maxDig=highMatrix(matrixA,row,col);

	printf("%d",maxDig);

	return 0;
}

ZeroDay Forums Mini