when you’re testing with that; 1) leap year before 2/28, 2) leap year after 2/28, 3) non leap year | 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

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, 12:51 PM
Livoni
1 Answer
- 1
What you have done??? Are you trying to test which is leep year?
10th Oct 2019, 5:18 PM
C ++
C ++ - avatar