#include<stdio.h> //Standard input/output header
#include<conio.h> //Console input/output header
int main() //the main function
{
int a,b; //Integer declaraion
clrscr(); //clear screen command
printf("Enter two numbers :\n"); //printf to print statement
scanf("%d%d",&a,&b); //scanf to take in two values
if(a>b) //if condition to compare which is bigger
printf("%d is greater than %d",a,b); //if condition is true
else
printf("%d is greater than %d",b,a); //if condition is false
getch();
}
#include<conio.h> //Console input/output header
int main() //the main function
{
int a,b; //Integer declaraion
clrscr(); //clear screen command
printf("Enter two numbers :\n"); //printf to print statement
scanf("%d%d",&a,&b); //scanf to take in two values
if(a>b) //if condition to compare which is bigger
printf("%d is greater than %d",a,b); //if condition is true
else
printf("%d is greater than %d",b,a); //if condition is false
getch();
}
No comments:
Post a Comment