Friday 13 July 2012

Conditional statement008

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

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...