program to use larger number in C language
#include<stdio.h>
int larger(int x,int y);
int main()
{
int x,y;
printf("Enter two numbers : ");
scanf("%d%d",&x,&y);
printf("larger number=%d\n",larger(x,y));
return 0;
}
int larger(int x,int y)
{
return x>y?x:y;
}
output
Enter two numbers : 5
10
larger number=10