
- Forum
- Programming Talk
- C and C++
- Display Year&Month Program
Display Year&Month Program
This is a discussion on Display Year&Month Program within the C and C++ forums, part of the Programming Talk category; Help me to write code for this program.which display year,month & day presents in a year for example. 1. no. ...
-
Display Year&Month Program
Help me to write code for this program.which display year,month & day presents in a year for example.
1. no. is 14 print 2 weeks
2. no is 90 print 3 months
3. no is 365 print 1 year
user can input any no?
-
the only thing I could think of is a very long winded
CASE and Switch statement
if < 14 days
or something like that
-
You could have a function to determine the number of days and return the value to the switch case statement and take action of printing as per the result from the function.
-
12-25-2006, 09:44 PM #4
- Join Date
- Apr 2006
- Answers
- 124
Limca did you try the suggestions. Even if you have tried anything else do post here so that we could know how you got your result.
-
Sponsored Ads

Reply With Quote





