jota
jota
CC#
Created by jota on 10/1/2024 in #help
help with project for school, the program keeps looping and doesn't stop adding "*"
Console.WriteLine("how many lines do you need?");
int l;
l = int.Parse(Console.ReadLine());
Console.WriteLine("how many columns do you need?");
int c;
c = int.Parse(Console.ReadLine());
int i = 0;
while (i < l)
{
Console.WriteLine("*");
i = i + 1;
while (i < c)
Console.WriteLine("*");
i = i + 1;
}
Console.WriteLine("how many lines do you need?");
int l;
l = int.Parse(Console.ReadLine());
Console.WriteLine("how many columns do you need?");
int c;
c = int.Parse(Console.ReadLine());
int i = 0;
while (i < l)
{
Console.WriteLine("*");
i = i + 1;
while (i < c)
Console.WriteLine("*");
i = i + 1;
}
11 replies