FIND THE GREATEST VALUE using c
FIND THE GREATEST VALUE
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
printf("enter the two
numbers");
scanf(“%d%d”,&a,&b);
if(a>b)
printf(“big is %d”, a);
else
printf(“big is %d”, b);
getch();
}
OUTPUT:
Enter the two numbers:
3
5
big is 5
No comments: