#include <iostream>
using namespace std;
int main()
{
int days[12]={31,28,31,30,31,30,31,31,30,31,30,31};
int noobcake=5;
int total=0;
int years=0;
for(;years++;years!=100)
{
cout<<years<<"this is never executed";
for(int month=0;month++;month!=12)
{
if(noobcake==6)total=total+1;
noobcake=(noobcake+days[month])%7;
cout<<month;
}
}
cout<<total;
system("pause");
return 0;
}

#include <iostream>
using namespace std;
int main()
{
int days[12]={31,28,31,30,31,30,31,31,30,31,30,31};
int noobcake=5;
int total=0;
for(int years =1900;years<2000;years++)
{
cout<<years<<" ";
for(int month=0;month<12;month++)
{
if(noobcake==6)total++;
if(month==2)
{
if(!(years%4))noobcake++;
}
noobcake=(noobcake+days[month])%7;
}
}
cout<<total;
system("pause");
return 0;
}

