Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i, mone, mehane;
- mone = int.Parse(Console.ReadLine());
- mehane = int.Parse(Console.ReadLine());
- for (i = 1; i < 1000; i++)
- {
- if (mone % i == 0 && mehane % i == 0)
- {
- Console.WriteLine(i);
- Console.WriteLine((mone / i) + "/" + (mehane / i));
Add Comment
Please, Sign In to add comment