Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Homework2_1
- {
- class Program
- {
- static void Main(string[] args)
- {
- string userMessage;
- int numberСycles;
- Console.Write("Введите ваше сообщение: ");
- userMessage = Console.ReadLine();
- Console.Write("Введите сколько раз будет выводится сообщение: ");
- numberСycles = Convert.ToInt32(Console.ReadLine());
- while(numberСycles-- > 0)
- {
- Console.WriteLine(userMessage);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement