- Get link
- X
- Other Apps
/*This program is to find the largest num among the three input by user*/
#include <stdio.h>
#include <conio.h>
int main()
{
int num1, num2, num3;
printf("Enter three numbers:\n");
scanf("%d %d %d", &num1, &num2, &num3);
if (num1>num2 && num1>num3) {
printf("%d is greater than %d and %d\n", num1, num2, num3);
} else if (num2>num1 && num2>num3) {
printf("%d is greater than %d and %d\n", num2, num1, num3);
} else {
printf("%d is greater than %d and %d\n", num3, num1, num2);
}
getch();
return 0;
}
https://drive.google.com/file/d/1HyaN02VkNBmUw9c2mk0ovRR49fg1fzKX/view?usp=sharing
- Get link
- X
- Other Apps
Comments
Post a Comment