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