// Demonstrating the use of a while loop with a // condition. // Week 2, Lecture 3 // Problem: I want to print out all the lowercase letters of the alphabet #include int main (void){ // 1. Declare and initialise loop control variable // 2. Test the loop control variable // 3. Update loop control variable char answer = 'n'; // answer while (answer != 'y'){ printf("Did you get a ticket to Taylor? "); scanf(" %c", &answer); // answer n } printf("%c", answer); return 0; }