Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- struct PhanSo
- {
- int tuso[100];
- int mauso[100];
- };
- int main()
- {
- struct PhanSo ps;
- int i, n;
- scanf("%d", &n);
- for (i = 0; i < n; i++)
- scanf("%d %d", &ps.tuso[i], &ps.mauso[i]);
- for (i = 0; i < n; i++)
- if (ps.tuso[i] % ps.mauso[i] == 0)
- printf("%d/%-2d", ps.tuso[i], ps.mauso[i]);
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement