Computer Science, asked by nikithasrinivas89, 5 hours ago

print largest and smallest of two numbers in c language​

Answers

Answered by sumantripathi43898
0

Answer:

c language means bro ask right questions

Answered by poojalmehta12
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