Joke Collection Website - Blessing messages - Who knows how to use this variable SMS?

Who knows how to use this variable SMS?

Let me tell you the steps.

Step 1: You should judge how many days are from the date you entered (note that it is not 2008. 1. 1). Suppose it exists in the variable int days.

Step 2: int b = days%5, find the remainder b, if b is 1 or 2, or 3, then fishing will be carried out on this day.

If b is 0 or 4, then he is drying the net.

Write the rest of the code yourself A complicated problem must be solved step by step. You must draw an N-s flow chart in the primary stage now, which will be very helpful for you in the future.

Pay attention to the first step: you have to judge whether this year is a leap year. I believe you have learned how to ask for a leap year. If not, I can send you the process steps.