Last active
January 27, 2023 13:37
-
-
Save GigaOrts/b6ba6889dedd93937132def5c1f908ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ЯЮниор_Домашка | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.Write("Введи любое слово: "); | |
string phraseToRepeat = Console.ReadLine(); | |
Console.Write("\nВведи число, сколько раз слово будет выведено: "); | |
int repeats = Convert.ToInt32(Console.ReadLine()); | |
for (int i = 0; i < repeats; i++) | |
Console.WriteLine(phraseToRepeat); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment