Код: Выделить всё
int n = 36; // any random no
int result = n;
for (int i = 2; i * i 1) {
result -= result / n;
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... -algorithm
Код: Выделить всё
int n = 36; // any random no
int result = n;
for (int i = 2; i * i 1) {
result -= result / n;
}