Get the largest number you enter

/*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();
}

comment 0 comments:

Post a Comment

Delete this element to display blogger navbar

 
© C.L.S.T.I. Tutorial | Design by Blog template in collaboration with Concert Tickets, and Menopause symptoms
Powered by Blogger