#include <stdio.h>
#include <conio.h>
void main()
{
int a[5][5],i,j,max=0;
clrscr();
printf("Enter any 5x5 matrix= ");
for(i=0;i<=4;i++)
{
for(j=0;j<=4;j++)
scanf("%d",&a[i][j]);
printf("\n");
}
max=a[0][0];
for(i=0;i<=4;i++)
for(j=i+1;j<=4;j++)
if(max<a[i][j])
max=a[i][j];
printf("Max. value in Matrix is = %d",max);
getch();
}
Subscribe to:
Post Comments (Atom)
Related Post
Array:
String functions:
General (Loops-for/while)
Thanks For this Article.This is very helpful for me.Students who need more information about this topics, They can checkout Maxlearners for free.
ReplyDeleteoutput bhe likh deta: as a Example
ReplyDelete