// Arup Guha
// 9/21/2011
// Written in COP 3223 to illustate the break statement.

#include <stdio.h>

int main() {


    int money = 0, donation;

    // Always loops.
    while (1) {

        // Break out when get get at least 100 bucks.
        if (money >= 100)
            break;

        // Get a new donation.
        printf("Enter an amount of money to donate.\n");
        scanf("%d", &donation);
        money = money + donation;
    }

    // What we collected.
    printf("You collected %d dollars.\n", money);

    return 0;

}
