/* The English policeman program using a do...while loop */ #include main () { int counter; /* Declare the loop counter variable */ counter = 0; /* Set the loop counter to zero */ do { printf("Allo\n"); /* Print "Allo" once */ counter = counter + 1; /* Add one to counter */ } while (counter < 3); /* Make sure loop executes three times */ printf("We always say %d 'Allo's\n", 3); }