#include<stdio.h>

/**
 * Terry Harvey CIS 105 Section 010 TA Tina Weymouth
 * Demonstration program to show repetition using a while loop
 **/

int main(){

    int count = 0;

    while (count < 10){
        printf("Hello world: %d\n", count + 1);//this does not change count
        count = count + 1; //this assignment does change count
    }

//can you predict what will print here?
    printf("Count now holds the value %d\n", count);

    while (count > 0){
        printf("Hello world: %d\n", count);
        count = count - 1;
    }

    return 0;

}


