// bugger1.cpp : Defines the entry point for the console application.
//


#include <stdio.h>
/* This problem has three separate beginner mistakes -
debug it*/
int main(int argc, char **argv)
/* My simple program to print how many days each month has*/
{
    for (i= 1; i < 13; i++) {
        if (i == 2) {
            printf ("Month %d has 28 or 29 days\n",i);
        }
        if (i == 1 || i == 3 || i == 5 || i == 7 || i == 8 || i == 10
        || i == 12) {
            printf ("Month %d has 31 days\n",i);
        } else {
            printf ("Month %d has 30 days\n");
        }
    }
    return 0;
}
