Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int maks(int x, int y, int z)
- {
- int maksim=0;
- if (x>maks)
- {
- maksim=x;
- }
- if (y>maksim)
- {
- maksim=y;
- }
- if (z>maksim)
- {
- maksim=z;
- }
- return maksim;
- }
- int main()
- {
- int x,y,z,maksim;
- printf("podaj 3 liczby polski smieciu");
- scanf("%d %d %d" ,&x,&y,&z);
- printf ("największa wspólna liczba to: %d" ,maks())
- maks(x,y,z);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement