// This program demonstrates counting using a while loop

#include <stdio.h>

int main(int argc, char **argv)
/* How many beans make five */
{
    int a= 1;           // a holds the number of beans
    while (a <= 5) {
        if (a > 1) {
			printf ("%d beans\n",a);
		} else {
			printf ("one bean\n");
		}
        a++;
    }
    printf ("make five\n");
    return 0;
}



