#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i,num,max=0;
for(i=1;i<=5;i++)
{
printf("Enter the number:");
scanf("%d",&num)
if(num>max)
max=num;
}
printf("Largest number is %d",max);
getch();
}
#include<conio.h>
void main()
{
clrscr();
int i,num,max=0;
for(i=1;i<=5;i++)
{
printf("Enter the number:");
scanf("%d",&num)
if(num>max)
max=num;
}
printf("Largest number is %d",max);
getch();
}
Comments
Post a Comment