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
» Adobe Photoshop CS6 portable
Mon Nov 28, 2016 7:06 pm by Kuteshikimi

» Adobe Photoshop CS3 portable
Mon Nov 28, 2016 7:04 pm by Kuteshikimi

» ADODC Datagrid
Fri Jul 06, 2012 8:22 am by Kuteshikimi

» Programming Language
Fri Jul 06, 2012 8:12 am by Kuteshikimi

» History of C++
Fri Jul 06, 2012 8:11 am by Kuteshikimi

» Part of a C++ Syntax
Fri Jul 06, 2012 8:09 am by Kuteshikimi

» TURBO C++ Operators
Fri Jul 06, 2012 8:08 am by Kuteshikimi

» Adding 3 Number
Fri Jul 06, 2012 8:05 am by Kuteshikimi

» C++ Sample System
Fri Jul 06, 2012 8:03 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
Top posting users this week
Visitor’s Unique Page-View
Visitor Counter
Visitor Counter
Visitor’s
free counters
Globe
Similar topics

Share | 
 

 Switch Case (Month)

View previous topic View next topic Go down 
AuthorMessage
Kuteshikimi
Admin
Admin
avatar

Posts : 41
Join date : 2011-09-01
Age : 27
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.forumtl.com
 
Switch Case (Month)
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Milk request for my 9 month old son
» English Close the Freeport Case, EXPRESSO, 12.11.09
» Cipriano Case: Psychic Prosecution Lawyer requests removal of the President Judge Henrique Pavão
» Chapter 7 - Suspicious Behaviour And Contradictions - The Murat Case
» What Brought You To The Anthony Case?

Permissions in this forum:You cannot reply to topics in this forum
 :: FORUM :: Datacom Institute of Computer Technology :: C++-
Jump to: