"I am getting this error in the 2 for statements in the condition() on the words 'row' and 'column'. I am a novice and I don't understand how to fix this error."
Code:
using System;
public class Program
{
public static void Main()
{
int number;
int row;
int column;
int width;
Console.Write("Enter a number: ");
number = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter the width: ");
width = Convert.ToInt32(Console.ReadLine());
for (row = 0; row; row++)
{
for (column = 0; column; column++)
Console.Write(number);
Console.WriteLine();
}
}
}
Comment