CSHARPOVICH Telegram 455
Задачка: Рекурсия для повторения строки n количество раз

Напишите рекурсивную функцию, которая принимает два параметра и повторяет строку n раз. Первый параметр txt - это повторяемая строка, а второй параметр - количество повторений строки.

Примеры:
Repetition("ab", 3) ➞ "ababab"
Repetition("kiwi", 1) ➞ "kiwi"
Repetition("cherry", 2) ➞ "cherrycherry"

Пишите ваши варианты в комментариях. Ответ будет в канале завтра.

#задача



tgoop.com/csharpovich/455
Create:
Last Update:

Задачка: Рекурсия для повторения строки n количество раз

Напишите рекурсивную функцию, которая принимает два параметра и повторяет строку n раз. Первый параметр txt - это повторяемая строка, а второй параметр - количество повторений строки.

Примеры:

Repetition("ab", 3) ➞ "ababab"
Repetition("kiwi", 1) ➞ "kiwi"
Repetition("cherry", 2) ➞ "cherrycherry"

Пишите ваши варианты в комментариях. Ответ будет в канале завтра.

#задача

BY Профессор Си


Share with your friend now:
tgoop.com/csharpovich/455

View MORE
Open in Telegram


Telegram News

Date: |

3How to create a Telegram channel? The visual aspect of channels is very critical. In fact, design is the first thing that a potential subscriber pays attention to, even though unconsciously. Telegram offers a powerful toolset that allows businesses to create and manage channels, groups, and bots to broadcast messages, engage in conversations, and offer reliable customer support via bots. Deputy District Judge Peter Hui sentenced computer technician Ng Man-ho on Thursday, a month after the 27-year-old, who ran a Telegram group called SUCK Channel, was found guilty of seven charges of conspiring to incite others to commit illegal acts during the 2019 extradition bill protests and subsequent months. Image: Telegram.
from us


Telegram Профессор Си
FROM American