print largest and smallest of two numbers in c language
Answers
Answered by
0
Answer:
c language means bro ask right questions
Answered by
1
Answer:
#include<stdio.h>
int main()
{
int x,y;
printf("Enter any two numbers: ");
scanf("%d%d", &x, &y);
if(x>y)
{
printf("%d is largest and %d is smallest", x,y);
}
else
{
printf("%d is largest and %d is smallest", y,x);
}
return 0;
}
Similar questions