SlideShare ist ein Scribd-Unternehmen logo
1 von 2
Take in a number from the keyboard the corresponds to a particular month. Using a switch
statement to determine the name of the month and output it to the console. for instance if the
input was 8 The output would be August You should also have a default statement that will
report when there is invalid input. In other words any value that is not between 1 and 12
Solution
#include<stdio.h>
main()
{
int month;
clrscr();
printf("enter any one month");
scanf("%d",&month);
switch(month)
{
case 1:
printf("January");
break;
case 2:
printf("February");
break;
case 3:
printf("March");
break;
case 4:
printf("April");
break;
case 5:
printf("May");
break;
case 6:
printf("June");
break;
case 7:
printf("July");
break;
case 8:
printf("August");
break;
case 9:
printf("September");
break;
case 10:
printf("October");
break;
case 11:
printf("November");
break;
case 12:
printf("December");
break;
default:
printf("Invalid Input");
}
getch();
}

Weitere ähnliche Inhalte

Ähnlich wie Take in a number from the keyboard the corresponds to a particular mon.docx

exp227-jan-170127160848 (3) (1).pdf
exp227-jan-170127160848 (3) (1).pdfexp227-jan-170127160848 (3) (1).pdf
exp227-jan-170127160848 (3) (1).pdfmounikanarra3
 
Conditional Statement in C Language
Conditional Statement in C LanguageConditional Statement in C Language
Conditional Statement in C LanguageShaina Arora
 
Unit ii chapter 2 Decision making and Branching in C
Unit ii chapter 2 Decision making and Branching in CUnit ii chapter 2 Decision making and Branching in C
Unit ii chapter 2 Decision making and Branching in CSowmya Jyothi
 
Control statements-Computer programming
Control statements-Computer programmingControl statements-Computer programming
Control statements-Computer programmingnmahi96
 
C Programming Lab.pdf
C Programming Lab.pdfC Programming Lab.pdf
C Programming Lab.pdfMOJO89
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given numberMainak Sasmal
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given numberMainak Sasmal
 
Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2alish sha
 
4 operators, expressions &amp; statements
4  operators, expressions &amp; statements4  operators, expressions &amp; statements
4 operators, expressions &amp; statementsMomenMostafa
 
Core programming in c
Core programming in cCore programming in c
Core programming in cRahul Pandit
 
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...Computer programming subject notes. Quick easy notes for C Programming.Cheat ...
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...DR B.Surendiran .
 
E1 – FundamentalsPlease refer to announcements for details about.docx
E1 – FundamentalsPlease refer to announcements for details about.docxE1 – FundamentalsPlease refer to announcements for details about.docx
E1 – FundamentalsPlease refer to announcements for details about.docxjacksnathalie
 

Ähnlich wie Take in a number from the keyboard the corresponds to a particular mon.docx (20)

3. chapter ii
3. chapter ii3. chapter ii
3. chapter ii
 
exp227-jan-170127160848 (3) (1).pdf
exp227-jan-170127160848 (3) (1).pdfexp227-jan-170127160848 (3) (1).pdf
exp227-jan-170127160848 (3) (1).pdf
 
cpract.docx
cpract.docxcpract.docx
cpract.docx
 
CONDITIONAL STATEMENT IN C LANGUAGE
CONDITIONAL STATEMENT IN C LANGUAGECONDITIONAL STATEMENT IN C LANGUAGE
CONDITIONAL STATEMENT IN C LANGUAGE
 
Conditional Statement in C Language
Conditional Statement in C LanguageConditional Statement in C Language
Conditional Statement in C Language
 
CHAPTER 5
CHAPTER 5CHAPTER 5
CHAPTER 5
 
Unit ii chapter 2 Decision making and Branching in C
Unit ii chapter 2 Decision making and Branching in CUnit ii chapter 2 Decision making and Branching in C
Unit ii chapter 2 Decision making and Branching in C
 
Control statements-Computer programming
Control statements-Computer programmingControl statements-Computer programming
Control statements-Computer programming
 
C Programming Lab.pdf
C Programming Lab.pdfC Programming Lab.pdf
C Programming Lab.pdf
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given number
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given number
 
C programming
C programmingC programming
C programming
 
Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2Dti2143 chap 4 control statement part 2
Dti2143 chap 4 control statement part 2
 
4 operators, expressions &amp; statements
4  operators, expressions &amp; statements4  operators, expressions &amp; statements
4 operators, expressions &amp; statements
 
Decision Making and Branching
Decision Making and BranchingDecision Making and Branching
Decision Making and Branching
 
Core programming in c
Core programming in cCore programming in c
Core programming in c
 
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...Computer programming subject notes. Quick easy notes for C Programming.Cheat ...
Computer programming subject notes. Quick easy notes for C Programming.Cheat ...
 
stack.pptx
stack.pptxstack.pptx
stack.pptx
 
E1 – FundamentalsPlease refer to announcements for details about.docx
E1 – FundamentalsPlease refer to announcements for details about.docxE1 – FundamentalsPlease refer to announcements for details about.docx
E1 – FundamentalsPlease refer to announcements for details about.docx
 
CP Handout#6
CP Handout#6CP Handout#6
CP Handout#6
 

Mehr von william842

Ted considers himself a skillful hacker- He has devised a way to repla.docx
Ted considers himself a skillful hacker- He has devised a way to repla.docxTed considers himself a skillful hacker- He has devised a way to repla.docx
Ted considers himself a skillful hacker- He has devised a way to repla.docxwilliam842
 
Technical testing metrics fall into two major categories- What are the.docx
Technical testing metrics fall into two major categories- What are the.docxTechnical testing metrics fall into two major categories- What are the.docx
Technical testing metrics fall into two major categories- What are the.docxwilliam842
 
Taylor and Jordan are married and file a joint tax return claiming the.docx
Taylor and Jordan are married and file a joint tax return claiming the.docxTaylor and Jordan are married and file a joint tax return claiming the.docx
Taylor and Jordan are married and file a joint tax return claiming the.docxwilliam842
 
Terri Keys son Taylor was diagnosed with Tourettes syndrome- obsessive.docx
Terri Keys son Taylor was diagnosed with Tourettes syndrome- obsessive.docxTerri Keys son Taylor was diagnosed with Tourettes syndrome- obsessive.docx
Terri Keys son Taylor was diagnosed with Tourettes syndrome- obsessive.docxwilliam842
 
The accrual basis of accounting requires revenue to be recorded when t.docx
The accrual basis of accounting requires revenue to be recorded when t.docxThe accrual basis of accounting requires revenue to be recorded when t.docx
The accrual basis of accounting requires revenue to be recorded when t.docxwilliam842
 
The Access Point bridge needs its own DHCP server since it is on a dif.docx
The Access Point bridge needs its own DHCP server since it is on a dif.docxThe Access Point bridge needs its own DHCP server since it is on a dif.docx
The Access Point bridge needs its own DHCP server since it is on a dif.docxwilliam842
 
The account Unrealized Gain (Loss) on Trading Securities should be inc.docx
The account Unrealized Gain (Loss) on Trading Securities should be inc.docxThe account Unrealized Gain (Loss) on Trading Securities should be inc.docx
The account Unrealized Gain (Loss) on Trading Securities should be inc.docxwilliam842
 
The 2013 balance sheet for Hallbrook Industries- Inc-- is shown below.docx
The 2013 balance  sheet for Hallbrook Industries- Inc-- is shown below.docxThe 2013 balance  sheet for Hallbrook Industries- Inc-- is shown below.docx
The 2013 balance sheet for Hallbrook Industries- Inc-- is shown below.docxwilliam842
 
The -meta charset-utf-8- element specifies what scheme the web page us.docx
The -meta charset-utf-8- element specifies what scheme the web page us.docxThe -meta charset-utf-8- element specifies what scheme the web page us.docx
The -meta charset-utf-8- element specifies what scheme the web page us.docxwilliam842
 
Sustainability is an important ethical and environmental issue in purc.docx
Sustainability is an important ethical and environmental issue in purc.docxSustainability is an important ethical and environmental issue in purc.docx
Sustainability is an important ethical and environmental issue in purc.docxwilliam842
 
Thank you- Let Phi- R rightarrow S be a surjective homomorphism from t.docx
Thank you- Let Phi- R rightarrow S be a surjective homomorphism from t.docxThank you- Let Phi- R rightarrow S be a surjective homomorphism from t.docx
Thank you- Let Phi- R rightarrow S be a surjective homomorphism from t.docxwilliam842
 
class is intro to computers - studying environmental studies and law e.docx
class is intro to computers - studying environmental studies and law e.docxclass is intro to computers - studying environmental studies and law e.docx
class is intro to computers - studying environmental studies and law e.docxwilliam842
 
Common Stock Dividends Distributable is reported in the balance sheet-.docx
Common Stock Dividends Distributable is reported in the balance sheet-.docxCommon Stock Dividends Distributable is reported in the balance sheet-.docx
Common Stock Dividends Distributable is reported in the balance sheet-.docxwilliam842
 
column on the pericol tabie iOus Ciou f States that the properties of.docx
column on the pericol tabie iOus Ciou f States that the properties of.docxcolumn on the pericol tabie iOus Ciou f States that the properties of.docx
column on the pericol tabie iOus Ciou f States that the properties of.docxwilliam842
 
Coby has been working on a research paper about poverty in America- In.docx
Coby has been working on a research paper about poverty in America- In.docxCoby has been working on a research paper about poverty in America- In.docx
Coby has been working on a research paper about poverty in America- In.docxwilliam842
 
Cloud Computing Theory and Practice chapter 2 problem 7 Tuple-spaces c.docx
Cloud Computing Theory and Practice chapter 2 problem 7 Tuple-spaces c.docxCloud Computing Theory and Practice chapter 2 problem 7 Tuple-spaces c.docx
Cloud Computing Theory and Practice chapter 2 problem 7 Tuple-spaces c.docxwilliam842
 
Clint is Marilyn-'s supervisor- Marilyn is a dedicated part-time emplo.docx
Clint is Marilyn-'s supervisor- Marilyn is a dedicated part-time emplo.docxClint is Marilyn-'s supervisor- Marilyn is a dedicated part-time emplo.docx
Clint is Marilyn-'s supervisor- Marilyn is a dedicated part-time emplo.docxwilliam842
 
Cleary- Wasser- and Nolan formed a partnership on January 1- 2010- wit.docx
Cleary- Wasser- and Nolan formed a partnership on January 1- 2010- wit.docxCleary- Wasser- and Nolan formed a partnership on January 1- 2010- wit.docx
Cleary- Wasser- and Nolan formed a partnership on January 1- 2010- wit.docxwilliam842
 
Classify each of the compounds as Soluble (s) or Not Soluble (ns)-.docx
Classify each of the compounds as Soluble (s) or Not Soluble (ns)-.docxClassify each of the compounds as Soluble (s) or Not Soluble (ns)-.docx
Classify each of the compounds as Soluble (s) or Not Soluble (ns)-.docxwilliam842
 
Choose the statement below that is TRUE- Choose the statement below th.docx
Choose the statement below that is TRUE- Choose the statement below th.docxChoose the statement below that is TRUE- Choose the statement below th.docx
Choose the statement below that is TRUE- Choose the statement below th.docxwilliam842
 

Mehr von william842 (20)

Ted considers himself a skillful hacker- He has devised a way to repla.docx
Ted considers himself a skillful hacker- He has devised a way to repla.docxTed considers himself a skillful hacker- He has devised a way to repla.docx
Ted considers himself a skillful hacker- He has devised a way to repla.docx
 
Technical testing metrics fall into two major categories- What are the.docx
Technical testing metrics fall into two major categories- What are the.docxTechnical testing metrics fall into two major categories- What are the.docx
Technical testing metrics fall into two major categories- What are the.docx
 
Taylor and Jordan are married and file a joint tax return claiming the.docx
Taylor and Jordan are married and file a joint tax return claiming the.docxTaylor and Jordan are married and file a joint tax return claiming the.docx
Taylor and Jordan are married and file a joint tax return claiming the.docx
 
Terri Keys son Taylor was diagnosed with Tourettes syndrome- obsessive.docx
Terri Keys son Taylor was diagnosed with Tourettes syndrome- obsessive.docxTerri Keys son Taylor was diagnosed with Tourettes syndrome- obsessive.docx
Terri Keys son Taylor was diagnosed with Tourettes syndrome- obsessive.docx
 
The accrual basis of accounting requires revenue to be recorded when t.docx
The accrual basis of accounting requires revenue to be recorded when t.docxThe accrual basis of accounting requires revenue to be recorded when t.docx
The accrual basis of accounting requires revenue to be recorded when t.docx
 
The Access Point bridge needs its own DHCP server since it is on a dif.docx
The Access Point bridge needs its own DHCP server since it is on a dif.docxThe Access Point bridge needs its own DHCP server since it is on a dif.docx
The Access Point bridge needs its own DHCP server since it is on a dif.docx
 
The account Unrealized Gain (Loss) on Trading Securities should be inc.docx
The account Unrealized Gain (Loss) on Trading Securities should be inc.docxThe account Unrealized Gain (Loss) on Trading Securities should be inc.docx
The account Unrealized Gain (Loss) on Trading Securities should be inc.docx
 
The 2013 balance sheet for Hallbrook Industries- Inc-- is shown below.docx
The 2013 balance  sheet for Hallbrook Industries- Inc-- is shown below.docxThe 2013 balance  sheet for Hallbrook Industries- Inc-- is shown below.docx
The 2013 balance sheet for Hallbrook Industries- Inc-- is shown below.docx
 
The -meta charset-utf-8- element specifies what scheme the web page us.docx
The -meta charset-utf-8- element specifies what scheme the web page us.docxThe -meta charset-utf-8- element specifies what scheme the web page us.docx
The -meta charset-utf-8- element specifies what scheme the web page us.docx
 
Sustainability is an important ethical and environmental issue in purc.docx
Sustainability is an important ethical and environmental issue in purc.docxSustainability is an important ethical and environmental issue in purc.docx
Sustainability is an important ethical and environmental issue in purc.docx
 
Thank you- Let Phi- R rightarrow S be a surjective homomorphism from t.docx
Thank you- Let Phi- R rightarrow S be a surjective homomorphism from t.docxThank you- Let Phi- R rightarrow S be a surjective homomorphism from t.docx
Thank you- Let Phi- R rightarrow S be a surjective homomorphism from t.docx
 
class is intro to computers - studying environmental studies and law e.docx
class is intro to computers - studying environmental studies and law e.docxclass is intro to computers - studying environmental studies and law e.docx
class is intro to computers - studying environmental studies and law e.docx
 
Common Stock Dividends Distributable is reported in the balance sheet-.docx
Common Stock Dividends Distributable is reported in the balance sheet-.docxCommon Stock Dividends Distributable is reported in the balance sheet-.docx
Common Stock Dividends Distributable is reported in the balance sheet-.docx
 
column on the pericol tabie iOus Ciou f States that the properties of.docx
column on the pericol tabie iOus Ciou f States that the properties of.docxcolumn on the pericol tabie iOus Ciou f States that the properties of.docx
column on the pericol tabie iOus Ciou f States that the properties of.docx
 
Coby has been working on a research paper about poverty in America- In.docx
Coby has been working on a research paper about poverty in America- In.docxCoby has been working on a research paper about poverty in America- In.docx
Coby has been working on a research paper about poverty in America- In.docx
 
Cloud Computing Theory and Practice chapter 2 problem 7 Tuple-spaces c.docx
Cloud Computing Theory and Practice chapter 2 problem 7 Tuple-spaces c.docxCloud Computing Theory and Practice chapter 2 problem 7 Tuple-spaces c.docx
Cloud Computing Theory and Practice chapter 2 problem 7 Tuple-spaces c.docx
 
Clint is Marilyn-'s supervisor- Marilyn is a dedicated part-time emplo.docx
Clint is Marilyn-'s supervisor- Marilyn is a dedicated part-time emplo.docxClint is Marilyn-'s supervisor- Marilyn is a dedicated part-time emplo.docx
Clint is Marilyn-'s supervisor- Marilyn is a dedicated part-time emplo.docx
 
Cleary- Wasser- and Nolan formed a partnership on January 1- 2010- wit.docx
Cleary- Wasser- and Nolan formed a partnership on January 1- 2010- wit.docxCleary- Wasser- and Nolan formed a partnership on January 1- 2010- wit.docx
Cleary- Wasser- and Nolan formed a partnership on January 1- 2010- wit.docx
 
Classify each of the compounds as Soluble (s) or Not Soluble (ns)-.docx
Classify each of the compounds as Soluble (s) or Not Soluble (ns)-.docxClassify each of the compounds as Soluble (s) or Not Soluble (ns)-.docx
Classify each of the compounds as Soluble (s) or Not Soluble (ns)-.docx
 
Choose the statement below that is TRUE- Choose the statement below th.docx
Choose the statement below that is TRUE- Choose the statement below th.docxChoose the statement below that is TRUE- Choose the statement below th.docx
Choose the statement below that is TRUE- Choose the statement below th.docx
 

Kürzlich hochgeladen

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 

Kürzlich hochgeladen (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 

Take in a number from the keyboard the corresponds to a particular mon.docx

  • 1. Take in a number from the keyboard the corresponds to a particular month. Using a switch statement to determine the name of the month and output it to the console. for instance if the input was 8 The output would be August You should also have a default statement that will report when there is invalid input. In other words any value that is not between 1 and 12 Solution #include<stdio.h> main() { int month; clrscr(); printf("enter any one month"); scanf("%d",&month); switch(month) { case 1: printf("January"); break; case 2: printf("February"); break; case 3: printf("March"); break; case 4: printf("April"); break; case 5: printf("May"); break; case 6:
  • 2. printf("June"); break; case 7: printf("July"); break; case 8: printf("August"); break; case 9: printf("September"); break; case 10: printf("October"); break; case 11: printf("November"); break; case 12: printf("December"); break; default: printf("Invalid Input"); } getch(); }