Dasturni shunday o‘zgartiringki, u har gal 0.216(239)
haqiqiy sonnning qisqarmas oddiy kasr shaklini a / b
ko‘rinishida ekranga chiqarsin.
Masalan:
// 0.123(45)
printf("%d / %d",
(12345 - 123) / gcd(12345 - 123, 99900),
999000 / gcd(12345 - 123, 99900)
);