#include<stdio.h>
#include<conio.h>
void main()
{int a,b,c;
printf("enter 3 number");
scanf("%d%d%d",&a,&b,&c);
if(a>b&&a>c)
printf("greatest number is:%d",a);
else if(b>c)
printf("greatest number is :%d",b);
else
printf("greatest number is :%d",c);
getch();
}
#include<conio.h>
void main()
{int a,b,c;
printf("enter 3 number");
scanf("%d%d%d",&a,&b,&c);
if(a>b&&a>c)
printf("greatest number is:%d",a);
else if(b>c)
printf("greatest number is :%d",b);
else
printf("greatest number is :%d",c);
getch();
}
No comments:
Post a Comment