CSharp · Console
using System;
public class Program
{
public static void Main()
{
//Invoer
int Getal = 1;
string Tekst = "";
//Verwerken
do
{
Tekst += Getal + " - ";
Getal++;
} while (Getal <= 10);
//Uitvoer
Console.WriteLine(Tekst);
}
}