+ 1
Solve this problem
Ok so there's a question to write a c++ program that calculate the total number of days from my date of birth (29-10-2004) to current date ,month and year using arrays and for loop
4 Réponses
+ 4
Entity here the hint (formula):
Number of days = 365*(number full years) + number of leap years.
The leap year is a multiple of 400 and a multiple of 4 but not a multiple of 100.
For the rest you need number of days in each month January=31, … etc.
+ 2
Show your code.
+ 1
Just tell me the formula to calculate
+ 1
https://sololearn.com/compiler-playground/cBpKE9n16gOW/?ref=app
Just my variant, how to do...