we get month for (month=days/30;) years for ( years=month/12;) but we also get days for(( days=days%30, why it happend explain ??))
hadisur_rahman
0
Newbie Poster
Recommended Answers
Jump to PostDo you like to know something about the div and mod operators?
Does the word please means anything to you?
All 3 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
ShiftLeft
15
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.