/*This letter will get the largest number you enter*/
#include<stdio.h>
main()
{
/*Declaration of data types*/
int number1, number2;
clrscr();
printf("This letter will get the largest number you enter");
printf("\nEnter your First number");
scanf("%d",&number1);
printf("\n Enter your Second number");
scanf("%d",&number2);
/*Condition*/
if (number1>=number2){
printf("\n Your First number is greatest than the second one: %d",number1);
}
else
printf("\n Your Second number is greatest than the First one: %d",number2);
getch();
}
0 comments:
Post a Comment