Print Greater Number in C

/* Print Greater Number in C */


#include<stdio.h>

#include<conio.h>

int main()

{

int num1, num2, num3;

printf("Enter 3 numbers"); 

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

if(num1>num2 && num1>num3)

{

printf("%d is greater", num1);

 } 

else if(num2>1 && num2>num3)

{

 printf("%d is greater", num2); 

{

else

printf("%d is greater", num3);

getch() ;

Output: 












Comments

Popular posts from this blog

Basic Computer 🖥️💻 Organisation

Introduction of computer 🖥️🖥️🖱️