Open Muxamedin opened 3 years ago
https://github.com/v-kostyukov/ithillel-Introduction-Python/blob/a37e8716d126d7f07b7f13a9c45b17496ee90e43/HW10/treangle_sequence.py#L27
результат
Введите число n: 7 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 7
ожидается :
Введите число n: 7 1 2 2 3 3 3 4
Изменил алгоритм: https://github.com/v-kostyukov/ithillel-Introduction-Python/blob/main/HW10/treangle_sequence.py
https://github.com/v-kostyukov/ithillel-Introduction-Python/blob/a37e8716d126d7f07b7f13a9c45b17496ee90e43/HW10/treangle_sequence.py#L27
результат
Введите число n: 7 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 7
ожидается :
Введите число n: 7 1 2 2 3 3 3 4