Home > Back-end >  C language little homework
C language little homework

Time:10-03

As shown in figure thank you bosses!

CodePudding user response:

Simple, use the scanf receive three data, & amp; Year, & amp; The month, & amp; Day, % d, % d, % d, the topic request in the future, a week is 7 days bai, you first day + 7, and determine the month how much is the biggest day (February to figure out whether year forward leap year), more than 30 days or 31 days of the month to add 1, otherwise add 7 day is finished,

CodePudding user response:

Change: use the scanf receive three data, % d, % d, % d, & amp; Year, & amp; The month, & amp; Is a week, after the day topic request add 7 days bai, you first day + 7, and determine the month how much is the biggest day (February to figure out whether year forward leap year), more than 30 days or 31 days of the month to add 1, otherwise add 7 day is finished,
  • Related