Your IP : 216.73.216.40


Current Path : /var/www/html/venkat/old/old/
Upload File :
Current File : /var/www/html/venkat/old/old/iit2015136_4.c

#include<stdio.h>

int main()
{
	int m,n,c,d,maximum;
	int a[10][10];
	printf("enter the number of rows and columns");
	scanf("%d%d",&m,&n);
	printf("enter the elements of the matrix");
	for(c=0;c<m;c++)
	for(d=0;d<n;d++)
	scanf("%d",&a[c][d]);
	maximum = a[0][0];
	for(c=1;c<n;c++)
	{
		for(d=1;d<n;d++)
		{
			if(a[c][d]>maximum)
			{
				printf("the maximum value is %d",a[c][d]);
			}	
			else
			printf("the maximum is %d",a[0][0]);
			}
			}
}