Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ConsoleApp1;
- using System.Text;
- public class Task08
- {
- public void Run()
- {
- Console.InputEncoding = Encoding.Unicode;
- Console.OutputEncoding = Encoding.Unicode;
- Console.Write( "Input text that repeating : " );
- string repeatingText = Console.ReadLine();
- Console.Write( "Input repeats count : " );
- int repeatsCount = int.Parse(Console.ReadLine());
- Console.WriteLine( "Output : " );
- for ( int i = 0; i < repeatsCount; i++ )
- {
- Console.WriteLine( $"{i} : {repeatingText}" );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement