Write a program to find out the Greater value in c
#include
#include
main()
{
int a,b;
clrscr();
printf("Enter First Value:");
scanf("%D",&a);
printf("Enter Second Value:");
scanf("%d",&b);
if(a>b)
{
printf("Greater Value is %d",a);
}
else
{
printf("Greater Value is %d",b);
}
getch();
}
No comments:
Post a Comment