When you’re testing with that; 1) leap year before 2/28, 2) leap year after 2/28, 3) non leap year, so finding a codings for it, | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When you’re testing with that; 1) leap year before 2/28, 2) leap year after 2/28, 3) non leap year, so finding a codings for it,

Int m,d, y, total; //prompt for month,day,year. //figure out if year is a leap year. If( m==1) total =day; else if (m ==2) total =31+ day; else if (m==3) total = 59 +day;

7th Oct 2019, 1:09 PM
Livoni
1 Answer
+ 4
What is the problem you are struggling with?
7th Oct 2019, 3:28 PM
Lothar
Lothar - avatar