Solve this problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

13th Jan 2024, 8:44 AM
Entity
Entity - avatar
4 Answers
+ 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.
13th Jan 2024, 1:26 PM
JaScript
JaScript - avatar
+ 2
Show your code.
13th Jan 2024, 9:27 AM
JaScript
JaScript - avatar
+ 1
Just tell me the formula to calculate
13th Jan 2024, 11:03 AM
Entity
Entity - avatar
13th Jan 2024, 8:00 PM
Сергей Лансков
Сергей Лансков - avatar