Write a C# console program that prints the numbers from 1 to 20 on separate rows on the console.
Create a C# console application with name “
static void Main() method write 20 commands
Console.WriteLine(…), each on a separate row, in order to print the numbers from 1 to 20 one after another. Some of you may be wondering if there is a smarter way. Relax, there is, but we will mention it later on.Now we start the program and we check if the result is what it is supposed to be:
1 2 … 20
Test your solution here: https://judge.softuni.bg/Contests/Practice/Index/503#2.
Now think whether we can write the program a smarter way, so we don't repeat the same command 20 times. Seek out information on the Internet about "for loop C#".