Find greater and smaller number from given two numbers
/*write a program to find greater and smaller number from given two numbers. */
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:
Post a Comment