#include #include using namespace std;bool IsRunYear( const int year ){assert(year > 0);if ( (year%4==0&&year%100!=0) || (year%400==0) )return true;else return false;}int main(){int total = 0;for(int year = 2000; year <= 2500; ++year){if(IsRunYear(year)){cout<<year<<" ";total++;if(total%15==0){cout<<endl;}}}cout<<endl;cout<<"total is "<<total<<endl;return 0;}