Herhaling - for

CSharp · Console

/Program.cs

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