Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int max_num(int a,int b)
- {
- int max=0;
- if(a>b)
- max=a;
- else
- max=b;
- return max;
- }
- int main()
- {
- int a,b;
- scanf("%d %d", &a,&b);
- printf("%d is maximum", max_num(a,b));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement