pause at 1:18
This commit is contained in:
19
C# Full Course for free/10.drawing Triangle.cs
Normal file
19
C# Full Course for free/10.drawing Triangle.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
// Draw a rectangle in the console
|
||||
Console.Write("how naby rows ?: ")
|
||||
int rows = Convert.ToInt32(Console.ReadLine())
|
||||
|
||||
Console.Write("how many columns ?: ")
|
||||
int columns = Convert.ToInt32(Console.ReadLine())
|
||||
|
||||
Console.Write("What symbol: ")
|
||||
int columns = Console.ReadLine()
|
||||
|
||||
for (int i = 0; i < rows; i++){
|
||||
|
||||
for (int j = 0 ; i < columns; j++)
|
||||
{
|
||||
Console.Write(symbol);
|
||||
}
|
||||
Console.WriteLine();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user