Sunday, July 31, 2016

TO FIND GREATEST NUMBER - C Language

/* TO FIND GREATEST NUMBER*/

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,max;
clrscr();
printf("Enter the three number\n");
scanf("%d%d%d",&a,&b,&c);
max=a;
if(b>max)
max=b;
if(c>max)
max=c;
printf("The gerater no. is %d",max);
getch();
}

/************************OUTPUT***************************
Enter the three number
23
65
95
The greatest no. is 95*/







No comments:

Post a Comment