17
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
int number = 5; // Predefined number for testing instead of Console.ReadLine()
8
9
for (int i = 0; i < number; i++)
10
{
11
Console.Write("*"); // Prints * without a new line
12
}
13
14
Console.WriteLine(); // Move to the next line after the loop finishes
15
}
16
}
17
Cached Result
Compilation error (line 1, col 20): The type or namespace name 'Model' does not exist in the namespace 'BillSplitter' (are you missing an assembly reference?)
Compilation error (line 9, col 42): The type or namespace name 'CampingTrip' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 22, col 46): The type or namespace name 'CampingTrip' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 9, col 42): The type or namespace name 'CampingTrip' could not be found (are you missing a using directive or an assembly reference?)
Compilation error (line 22, col 46): The type or namespace name 'CampingTrip' could not be found (are you missing a using directive or an assembly reference?)