25./*Write
a program to input two values and find out Greater value*/
#include<stdio.h>
#include<conio.h>
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();
}
OUTPUT
Enter First
Value:4
Enter
Second Value:7
Greater
Value is : 7
No comments:
Post a Comment