Mail Archives: djgpp/2001/01/22/21:42:17
From: | Tom St Denis <stdenis AT compmore DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: switch statements
|
Date: | Tue, 23 Jan 2001 02:16:53 GMT
|
Organization: | Deja.com
|
Lines: | 25
|
Message-ID: | <94ipie$p7s$1@nnrp1.deja.com>
|
References: | <Re4b6.194$LQ1 DOT 55146 AT sapphire DOT mtt DOT net>
|
NNTP-Posting-Host: | 24.156.37.224
|
X-Article-Creation-Date: | Tue Jan 23 02:16:53 2001 GMT
|
X-Http-User-Agent: | Mozilla/5.0 (Windows 98; U) Opera 5.01 [en]
|
X-Http-Proxy: | 1.1 x69.deja.com:80 (Squid/1.1.22) for client 24.156.37.224
|
X-MyDeja-Info: | XMYDJUIDtomstdenis
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
In article <Re4b6.194$LQ1 DOT 55146 AT sapphire DOT mtt DOT net>,
"Michelle" <michelleannprince AT hotmail DOT com> wrote:
> How would you write a program that contains a "switch" statement that
> determines how many days are in a particular month as follows:
>
> · The user enters a month number (int) where 1 means January, 2 means
> February, etc.
>
> · The program then outputs the number of days in that month.
>
> · Assume the following numbers of days per month:
>
> 31 days for January, March, May, July, August, October, December
>
> 30 day for April, June, September, November
>
> 28 days for February
Sure I will do your homework, just tell me which prof I should address it too.
Tom
Sent via Deja.com
http://www.deja.com/
- Raw text -