Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace homeWorkMasteringCycles
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int countTimes;
- string hello = "Привет!";
- Console.Write("Введите количество появление сообщения - привет: ");
- countTimes = Convert.ToInt32(Console.ReadLine());
- while (countTimes-- > 0)
- {
- Console.WriteLine(hello);
- }
- Console.WriteLine(" ");
- for (int i = 0; i < countTimes; i++)
- {
- Console.WriteLine(hello);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement