Find Maximum Between two number by R4R Team

-Here we try to find the maximum number between two number
Example-
first number is 1
second number is 90
then 90 is maximum

program-

#include < stdio.h>
int main()
{
int a,b;
printf("Enter First number\n");
scanf("%d",&a);
printf("Enter Second number\n");
scanf("%d",&b);
if(a>b)
{
printf("%d is greator",b);
}
}


output-

Enter First number
12
Enter Second number
3
12 is greator

Enter First number
-3
Enter Second number
3
3 is greator


-In this program, we take a input of two integer number
-then if(a>b) will execute if 'a' is greator otherwise it will execute else part.




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!