// 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) {
        printf ("%d bean(s)\n",a);
        a++;
    }
    printf ("make five\n");
    return 0;
}

/* The main loop could also be written as
    for (a= 1; a <= 5; a++) {
        printf ("%d bean(s)\n",a);
    }*/

