You need to Register First!

Before you Log-in...




 
HomePortalCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in
Sample design and thinking of Something new Graphical design.... To all member's of this website please Fill up the form of your Personal Information for Special Reference of our Forum thank you!
For non-member just post your comment in the chatbox. Thanks for Visiting our site.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» AutoCAD-tutorial-01
Thu Dec 13, 2018 3:49 pm by Kuteshikimi

» Definition-of-Computer-Graphics
Thu Dec 13, 2018 3:47 pm by Kuteshikimi

» Explore-the-Graphical-User-Interface
Thu Dec 13, 2018 3:44 pm by Kuteshikimi

» A-BRIEF-HISTORY-OF-COMPUTER-GRAPHICS
Thu Dec 13, 2018 3:42 pm by Kuteshikimi

» Lesson 7- Network Design Models
Sun Nov 25, 2018 2:29 am by Kuteshikimi

» Lesson 6-Internet and Networking Devices
Sun Nov 25, 2018 2:27 am by Kuteshikimi

» Lesson 5-Introduction to Data Communications
Sun Nov 25, 2018 2:26 am by Kuteshikimi

» Lesson 4-Network Cabling
Sun Nov 25, 2018 2:19 am by Kuteshikimi

» Lesson 3-Types of Internet Connection
Sun Nov 25, 2018 2:19 am by Kuteshikimi

ENGINEERING.COM GAMES
Top 100 Games
Game Site Top 100


Most active topic starters
Kuteshikimi
 
imbaBOY
 
Top posters
Kuteshikimi
 
imbaBOY
 
markeeh17
 
Top posting users this month
Kuteshikimi
 
Top posting users this week
Kuteshikimi
 
Visitor’s Unique Page-View
Visitor Counter
Visitor Counter
Visitor’s
free counters
Globe
Similar topics

Share | 
 

 Switch Case (Month)

Go down 
AuthorMessage
Kuteshikimi
Admin
Admin
avatar

Posts : 52
Join date : 2011-09-01
Age : 28
Location : Cavite City, Philippines

PostSubject: Switch Case (Month)   Thu Sep 15, 2011 6:06 pm

Code:

#include<iostream.h>
#include<conio.h.>

main()
{
int month =0;
clrscr();
cout<<”enter value of month :”;
cin>>month;
switch(month)
{
case 1:
cout<<”January has 31 days”;
break;

case 2:
cout<<”February has 28 or 29 days”;
break;

case 3:
cout<<”March has 31 days”;
break;

case 4:
cout<<”April has 30 days”;
break;

case 5:
cout<<”May has 31 days”;
break;

case 6:
cout<<”June has 30 days”;
break;

case 7:
cout<<”July has 31 days”;
break;

case 8:
cout<<”August has 31 days”;
break;

case 9:
cout<<”September has 30 days”;
break;

case 10:
cout<<”October has 31 days”;
break;

case 11:
cout<<” November has 30 days”;
break;

case 12:
cout<<”December has 31 days”;
break;

default:
cout<<”Sorry that is not a valid month!”;
break;
}
getch();
return 0;
}
Back to top Go down
View user profile http://kuteshikimi.board-directory.net
 
Switch Case (Month)
Back to top 
Page 1 of 1
 Similar topics
-
» Milk request for my 9 month old son
» Seeking Milk for my 8.5 month old in NoVa
» Looking for Milk for my 5 month old (Lyndon area)
» Did we talk about the Adrian Prout case?
» 9 month old needs milk. Trying to make it to 1 year

Permissions in this forum:You cannot reply to topics in this forum
 :: FORUM :: Application Program :: C++-
Jump to: