Search This Blog

Read Your Language

Find greater and smaller number from given two numbers


      Find greater and smaller number from given two numbers


/*write a program to find greater and smaller   number from given two numbers. */

#include<stdio.h>
main()
{   int y,z;
printf("Enter the two numbers\n");
scanf("%d%d",&y,&z);
if(y>z)
{
printf(" %d greater number than %d  &   smaller number is %d \n",y,z,z);
}
else
{
printf("%d greater number than %d  &   smaller number is %d \n",z,y,y);
}
}


No comments:

Contact Form

Name

Email *

Message *

Followers