Klavyeden girilen mesajı istenilen sayıda ekrana yazdırma — C# Console
[code lang=”csharp”]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;//www.gorselprogramlama.com
using System.Threading.Tasks;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{//www.gorselprogramlama.com
string mesaj;
int kac;
Console.Write("Mesajı girin>>>");
mesaj = Console.ReadLine();//www.gorselprogramlama.com
Console.Write("Kaç defa yazılacak>>>");
kac=Convert.ToInt32(Console.ReadLine());
for (int i = 0; i <kac ; i++)
{
Console.WriteLine(mesaj);
}
Console.ReadLine();
}//www.gorselprogramlama.com
}
}
[/code]
