ZeroJudge & UVa Online Judge answers
#include using namespace std; int main() { int year; while(cin>>year) { if(cin.eof()) break; if((year%4==0 && year%100!=0) || year%400==0) cout<<"a leap year"< else cout<<"a normal year"< } return 0; }
No comments:
Post a Comment