Determine the high value and same value of two input numbers.
#include <stdio.h>
#include <conio.h>
void main( )
{
int m = 0, n = 0;
clrscr ( );
printf ("\n Enter first number..........:"); scanf ("%d",&m);
printf ("\n Enter second number.....:"); scanf ("%d",&n);
if ( m > n )
printf ("\n The first number is high value....: %d", m);
else
if ( n > m)
printf ("\n The second number is high value.....: %d",n);
else
printf ("\n Both the number are same");
getch ( );
}
To contact us
#include <stdio.h>
#include <conio.h>
void main( )
{
int m = 0, n = 0;
clrscr ( );
printf ("\n Enter first number..........:"); scanf ("%d",&m);
printf ("\n Enter second number.....:"); scanf ("%d",&n);
if ( m > n )
printf ("\n The first number is high value....: %d", m);
else
if ( n > m)
printf ("\n The second number is high value.....: %d",n);
else
printf ("\n Both the number are same");
getch ( );
}
To contact us
No comments:
Post a Comment