14
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
int nilai= 1;
8
while (nilai < 6) {
9
Console.WriteLine(nilai);
10
nilai = nilai + 1;
11
12
}
13
}
14
}
Cached Result
Compilation error (line 2, col 1): A namespace cannot directly contain members such as fields or methods
Compilation error (line 12, col 12): Member modifier 'static' must precede the member type and name
Compilation error (line 31, col 10): } expected
Compilation error (line 31, col 10): } expected
Compilation error (line 12, col 12): Member modifier 'static' must precede the member type and name
Compilation error (line 31, col 10): } expected
Compilation error (line 31, col 10): } expected