28 lines
581 B
C#
28 lines
581 B
C#
using System;
|
|
|
|
namespace Introduction.Methods.Step1
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
char character;
|
|
Console.WriteLine("Įveskite spausdinamą simbolį");
|
|
character = Convert.ToChar(Console.Read());
|
|
Program program = new Program();
|
|
program.Display(character);
|
|
Console.ReadKey();
|
|
}
|
|
|
|
void Display(char characterToDisplay)
|
|
{
|
|
for (int i = 1; i < 51; i++)
|
|
if (i % 5 == 0)
|
|
Console.WriteLine(characterToDisplay);
|
|
else
|
|
Console.Write(characterToDisplay);
|
|
Console.WriteLine("");
|
|
}
|
|
}
|
|
}
|