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