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