Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int a, b, c, x;
- printf ("Podaj ilosc uczniow 1 klasy \n");
- scanf ("%d", &a);
- printf ("Podaj ilosc uczniow 2 klasy \n");
- scanf ("%d", &b);
- c = a*b;
- do
- {
- if(a > b) {
- a = a - b;
- } else {
- b = b - a;
- }
- }
- while(a != b);
- x = c/a;
- printf ("Pani powinna zakupic cukierkow: %d", &x);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement