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 ConsoleApp5
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Какое сообщение выводить на экран?: ");
- string messageText = Console.ReadLine();
- Console.Write("Сколько раз его вывести?: ");
- int withdrawalAmount = Convert.ToInt32(Console.ReadLine());
- for (int x = 1; x <= withdrawalAmount; x++)
- {
- Console.WriteLine(messageText);
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement