Advertisement
Guest User

Untitled

a guest
May 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int x1,x2,x3,x4,x5;
  7. printf("Podaj swoja liczbe kart\n");
  8. scanf("%d" , &x1);
  9. printf("Podaj liczbe osob w klasie");
  10. scanf("%d" ,&x2);
  11. x3 = x1 / x2;
  12. x4 = x3 * x2;
  13. x5 = x1 - x4;
  14. printf("Ilosc kart rozdana kolegom: %d \n", x3);
  15. printf("Ilosc kart ktora ci zostanie: %d", x5);
  16.  
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement