#include<stdio.h>
#include<conio.h>
void mian()
{
int a,b,c;
clrscr();
printf("Enter the 3 values\n");
scanf("%d%d%d",&a,&b,&c);
if (a>b &&a>c)
{
printf("Greatest is a=%d",a);
}
else if (b>a && b>c)
{
printf("Greatest is b=%d",b);
}
else
{
printf("Greatest is c=%d",c);
}
getch();
}
#include<conio.h>
void mian()
{
int a,b,c;
clrscr();
printf("Enter the 3 values\n");
scanf("%d%d%d",&a,&b,&c);
if (a>b &&a>c)
{
printf("Greatest is a=%d",a);
}
else if (b>a && b>c)
{
printf("Greatest is b=%d",b);
}
else
{
printf("Greatest is c=%d",c);
}
getch();
}
No comments:
Post a Comment