Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int x1,x2,x3,x4,x5;
- printf("Podaj swoja liczbe kart\n");
- scanf("%d" , &x1);
- printf("Podaj liczbe osob w klasie");
- scanf("%d" ,&x2);
- x3 = x1 / x2;
- x4 = x3 * x2;
- x5 = x1 - x4;
- printf("Ilosc kart rozdana kolegom: %d \n", x3);
- printf("Ilosc kart ktora ci zostanie: %d", x5);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement