Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout << "Kerem irja be a torteket: \n";
- tort a, b;
- cout << "A tort erteke: ";
- scanf_s("%d/%d", &b.x, &b.y);
- while (true)
- {
- cout << "A tort erteke: ";
- scanf_s("%d/%d", &a.x, &a.y);
- if (a.y == 0)
- break;
- b.x *= a.y;
- b.y *= a.x;
- }
- cout << b.x << "/" << b.y;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement