Computer Science, asked by SwastikaSarkar, 7 months ago

write a program to input 2 numbers and check which number is greater​

Answers

Answered by smilly06
3

Answer:

/* C Program to Find Largest of Two numbers */

#include <stdio.h>

int main() {

int a, b;

printf("Please Enter Two different values\n");

scanf("%d %d", &a, &b);

if(a > b)

{

printf("%d is Largest\n", a);

}

else if (b > a)

{

printf("%d is Largest\n", b);

}

else

{

printf("Both are Equal\n");

}

return 0;

}

Explanation:

I hope it will help u ❤️.....

Similar questions