#include<stdio.h>
void max_min(int n, int m) ///Receive the integer
{
if(n>m)
{
printf("
%d is bigger then %d
",n,m);
}
else if(m>n)
{
printf("
%d is bigger then %d
",m,n);
}
else if(n==m)
{
printf("
%d and %d are Equal
");
}
}
int main()
{
int n,m;
printf("Please Enter Two Number: ");
scanf("%d %d",&n,&m);
max_min(n,m); ///call the function and pass the integer
return 0;
}
Output
Please Enter Two Number: 11 12
12 is bigger then 11
Add your comment