22
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
//Invoer
8
int Getal = 1;
9
string Tekst = "";
10
11
//Verwerken
12
13
while (Getal <= 10)
14
{
15
Tekst += Getal + " - ";
16
Getal++;
17
}
18
19
//Uitvoer
20
Console.WriteLine(Tekst);
21
}
22
}
Cached Result
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 -