Today Is the Day!
When a year begins, we become so pumped and motivated. We say to ourselves, this is the year when we will turn things around! Usually, this feeling wither away after a month or two and we lose our motivation. But not this year!
Today, we will remind ourselves that we still have a lot of days to go in this year to do a whole bunch of amazing stuff. And, we will start by solving a problem.
In this problem, print the day of the year August 2, 2019 is. For your convenience, if today was January 1, 2019, you just had to print 1 for your answer.
A rhyme might help you to solve the problems:
“Thirty days hath September,
April, June, and November;
All the rest have thirty-one,
Excepting February alone,
And that has twenty-eight days clear
And twenty-nine in each leap year”
There is no input for this problem.
Print a single integer, the answer to your problem.