how to work out the leap year
Oct 4, 2016 at 3:53am
Write your question here.
cin a year,and judge if it is a leap year.
Oct 4, 2016 at 3:54am
1 2
|
int year;
if(cin >> year && year % 4 == 0) cout << "It is a leap year!!!!\n";
|
Last edited on Oct 4, 2016 at 3:54am
Topic archived. No new replies allowed.