Program:
#include<stdio.h>
#include<conio.h>
void main( )
{
int x,y,h;
clrscr( );
printf("\nEnter two Numbers:");
scanf("%d%d",&x,&y);
h=(x>y)?x:y;
printf("\nHighest Number is %d",h);
getch( );
}
Input/Output:
Enter two Numbers: 10
20
Highest Number is 20
#include<stdio.h>
#include<conio.h>
void main( )
{
int x,y,h;
clrscr( );
printf("\nEnter two Numbers:");
scanf("%d%d",&x,&y);
h=(x>y)?x:y;
printf("\nHighest Number is %d",h);
getch( );
}
Input/Output:
Enter two Numbers: 10
20
Highest Number is 20
0 comments:
Post a Comment