to find out max number from three number

// to find out max number from three number
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf(“enter value of a:”);
scanf(“%d”,&a);
printf(“enter value of b:”);
scanf(“%d”,&b);
printf(“enter value of c:”);
scanf(“%d”,&c);
if(a>b && a>c)
printf(“ans: %d”,a);
else if(b>c)
printf(“ans: %d”,b);
else
printf(“ans: %d”,c);
getch();
}

Leave a Reply

Your email address will not be published. Required fields are marked *