#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\n Enter three numbers");
scanf("%d %d %d",&a,&b,&c);
if (a>b)
{
if(a>c)
printf("\n Biggest Number = %d",a);
else
printf("\n Biggest Number = %d",c);
}
else
{
if(b>c)
printf("\n Biggest Number = %d",b);
else
printf("\n Biggest Number = %d",c);
}
getch();
}
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\n Enter three numbers");
scanf("%d %d %d",&a,&b,&c);
if (a>b)
{
if(a>c)
printf("\n Biggest Number = %d",a);
else
printf("\n Biggest Number = %d",c);
}
else
{
if(b>c)
printf("\n Biggest Number = %d",b);
else
printf("\n Biggest Number = %d",c);
}
getch();
}
No comments:
Post a Comment