Computer Science, asked by arai22760, 8 days ago

write a program to print greatest among 3 number​

Answers

Answered by kanakg
2

Explanation:

*

* C program to find the biggest of three numbers

*/

#include <stdio.h>

#include<como.h>

void main()

{

int num1, num2, num3;

clrscr()

printf("Enter the values of num1, num2 and num3\n");

scanf("%d %d %d", &num1, &num2, &num3);

printf("num1 = %d\tnum2 = %d\tnum3 = %d\n", num1, num2, num3);

if (num1 > num2)

{

if (num1 > num3)

{

printf("num1 is the greatest among three \n");

}

else

{

printf("num3 is the greatest among three \n");

}

}

else if (num2 > num3)

printf("num2 is the greatest among three \n");

else

printf("num3 is the greatest among three \n");

getch();

}

HOPE IT HELPS

PLEASE MARK ME IN BRAINLIST

Answered by mamtabadhan89
0

Answer:

please mark me breanlist

Similar questions