Question d’entretien chez Galil Motion Control

How would you write a basic computer algorithm to count from 1 to 15?