Search:
Forum
Beginners
how to work out the leap year
how to work out the leap year
Oct 4, 2016 at 3:53am UTC
ll1234
(7)
Write your question here.
cin a year,and judge if it is a leap year.
Oct 4, 2016 at 3:54am UTC
SakurasouBusters
(732)
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 UTC
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs