#include<conio.h>
#include<stdio.h>
void main()
{
int arr[3],i,lar;
clrscr();
printf("Enter Any Three Numbers : ");
for(i=0;i<3;++i)
{
scanf("%d",&arr[i]);
}
lar=arr[0];
for(i=1;i<3;++i)
{
if(arr[i]>lar)
lar=arr[i];
}
printf("\n\nLargest of Three Is : %d",lar);
getch();
}
#include<stdio.h>
void main()
{
int arr[3],i,lar;
clrscr();
printf("Enter Any Three Numbers : ");
for(i=0;i<3;++i)
{
scanf("%d",&arr[i]);
}
lar=arr[0];
for(i=1;i<3;++i)
{
if(arr[i]>lar)
lar=arr[i];
}
printf("\n\nLargest of Three Is : %d",lar);
getch();
}
0 comments:
Post a Comment