ProAnswers.org

Write a C program to find out the biggest of two Numbers?

#include

#include 

void main() 

{ 

int a,b; 

clrscr(); 

printf(“enter the 2 numbers”); 

scanf(“%d%d”,&a,&b); 

if(a>b) 

printf(“a is biggest”); 

else 

printf(“b is biggest”); 

getch(); 

} 

Output: 

enter the two numbers: 

6 

7 

b is biggest.