[Homework] C# Basics - Primitive Data Types and Variables - Problem {8} Isosceles Triangle
Здравейте,
някой може ли да помогне. Защо този ког не тръгва:
using System;
class RepeatString
{
static void Main()
{
string indent = "---";
Console.WriteLine(indent.Repeat(0)); //would print nothing.
Console.WriteLine(indent.Repeat(1)); //would print "---".
Console.WriteLine(indent.Repeat(2)); //would print "------".
Console.WriteLine(indent.Repeat(3)); //would print "---------".
}
}