SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
C++ only plz
Write a function that takes two arguments and retruns XN using a while loop. Have the program
prompt for the X and N values the print out an informative message and the answer. Then prompt
again. Main must loop repeatedly until the user provides two valid values. N must not be negative.
The program exits when two zeros are entered.

Mais conteúdo relacionado

Mais de jaipur2

Bullying according to noted expert Dan Olweus poisons t.pdf
Bullying according to noted expert Dan Olweus poisons t.pdfBullying according to noted expert Dan Olweus poisons t.pdf
Bullying according to noted expert Dan Olweus poisons t.pdfjaipur2
 
C++ Please I am posting the fifth time and hoping to get th.pdf
C++ Please I am posting the fifth time and hoping to get th.pdfC++ Please I am posting the fifth time and hoping to get th.pdf
C++ Please I am posting the fifth time and hoping to get th.pdfjaipur2
 
C++ only 319 LAB Exact change Write a program with total c.pdf
C++ only 319 LAB Exact change Write a program with total c.pdfC++ only 319 LAB Exact change Write a program with total c.pdf
C++ only 319 LAB Exact change Write a program with total c.pdfjaipur2
 
C++ Help with the section for doEditTweet only Program .pdf
C++ Help with the section for doEditTweet only  Program .pdfC++ Help with the section for doEditTweet only  Program .pdf
C++ Help with the section for doEditTweet only Program .pdfjaipur2
 
C++ is a highlevel programming language that consists of v.pdf
C++ is a highlevel programming language that consists of v.pdfC++ is a highlevel programming language that consists of v.pdf
C++ is a highlevel programming language that consists of v.pdfjaipur2
 
C++ Help with the section for getNextId only Program to.pdf
C++ Help with the section for getNextId only  Program to.pdfC++ Help with the section for getNextId only  Program to.pdf
C++ Help with the section for getNextId only Program to.pdfjaipur2
 
C++ Help with the section for doEditTweet only NOT using s.pdf
C++ Help with the section for doEditTweet only NOT using s.pdfC++ Help with the section for doEditTweet only NOT using s.pdf
C++ Help with the section for doEditTweet only NOT using s.pdfjaipur2
 
C++ Programming Exercise 9 from Chapter 16 Upload your so.pdf
C++  Programming Exercise 9 from Chapter 16 Upload your so.pdfC++  Programming Exercise 9 from Chapter 16 Upload your so.pdf
C++ Programming Exercise 9 from Chapter 16 Upload your so.pdfjaipur2
 
BU RESTORAN KURTARILABLR M Juan ve Bonita Gonzales Ohio .pdf
BU RESTORAN KURTARILABLR M  Juan ve Bonita Gonzales Ohio .pdfBU RESTORAN KURTARILABLR M  Juan ve Bonita Gonzales Ohio .pdf
BU RESTORAN KURTARILABLR M Juan ve Bonita Gonzales Ohio .pdfjaipur2
 
C Sao Paulodaki Lumiar okulunda snf ev devi veya oyun zam.pdf
C Sao Paulodaki Lumiar okulunda snf ev devi veya oyun zam.pdfC Sao Paulodaki Lumiar okulunda snf ev devi veya oyun zam.pdf
C Sao Paulodaki Lumiar okulunda snf ev devi veya oyun zam.pdfjaipur2
 
Bu eitim modlnde sunulan biyolojik tehlike tanmndaki gve.pdf
Bu eitim modlnde sunulan biyolojik tehlike tanmndaki gve.pdfBu eitim modlnde sunulan biyolojik tehlike tanmndaki gve.pdf
Bu eitim modlnde sunulan biyolojik tehlike tanmndaki gve.pdfjaipur2
 
C problem 1 Create Ellipse object Ellipse set fill to Col.pdf
C problem 1 Create Ellipse object Ellipse set fill to Col.pdfC problem 1 Create Ellipse object Ellipse set fill to Col.pdf
C problem 1 Create Ellipse object Ellipse set fill to Col.pdfjaipur2
 
C Program Jrite a program called that prompts the user to en.pdf
C Program Jrite a program called that prompts the user to en.pdfC Program Jrite a program called that prompts the user to en.pdf
C Program Jrite a program called that prompts the user to en.pdfjaipur2
 
c Design a Turing Machine for the following language Lab.pdf
c Design a Turing Machine for the following language Lab.pdfc Design a Turing Machine for the following language Lab.pdf
c Design a Turing Machine for the following language Lab.pdfjaipur2
 
c Give the corresponding snapshots of memory after the fol.pdf
c Give the corresponding snapshots of memory after the fol.pdfc Give the corresponding snapshots of memory after the fol.pdf
c Give the corresponding snapshots of memory after the fol.pdfjaipur2
 
C Program The Snake game involves controlling a snake that .pdf
C Program The Snake game involves controlling a snake that .pdfC Program The Snake game involves controlling a snake that .pdf
C Program The Snake game involves controlling a snake that .pdfjaipur2
 
C Language Question 1 4 points Listen Which of the fo.pdf
C Language   Question 1 4 points   Listen Which of the fo.pdfC Language   Question 1 4 points   Listen Which of the fo.pdf
C Language Question 1 4 points Listen Which of the fo.pdfjaipur2
 
C Outine Lozanos strengths and weaknesses as revealed by y.pdf
C Outine Lozanos strengths and weaknesses as revealed by y.pdfC Outine Lozanos strengths and weaknesses as revealed by y.pdf
C Outine Lozanos strengths and weaknesses as revealed by y.pdfjaipur2
 
c Originally when Hubble proposed this classification he .pdf
c Originally when Hubble proposed this classification he .pdfc Originally when Hubble proposed this classification he .pdf
c Originally when Hubble proposed this classification he .pdfjaipur2
 
c Explain the difference between a single user operating sy.pdf
c Explain the difference between a single user operating sy.pdfc Explain the difference between a single user operating sy.pdf
c Explain the difference between a single user operating sy.pdfjaipur2
 

Mais de jaipur2 (20)

Bullying according to noted expert Dan Olweus poisons t.pdf
Bullying according to noted expert Dan Olweus poisons t.pdfBullying according to noted expert Dan Olweus poisons t.pdf
Bullying according to noted expert Dan Olweus poisons t.pdf
 
C++ Please I am posting the fifth time and hoping to get th.pdf
C++ Please I am posting the fifth time and hoping to get th.pdfC++ Please I am posting the fifth time and hoping to get th.pdf
C++ Please I am posting the fifth time and hoping to get th.pdf
 
C++ only 319 LAB Exact change Write a program with total c.pdf
C++ only 319 LAB Exact change Write a program with total c.pdfC++ only 319 LAB Exact change Write a program with total c.pdf
C++ only 319 LAB Exact change Write a program with total c.pdf
 
C++ Help with the section for doEditTweet only Program .pdf
C++ Help with the section for doEditTweet only  Program .pdfC++ Help with the section for doEditTweet only  Program .pdf
C++ Help with the section for doEditTweet only Program .pdf
 
C++ is a highlevel programming language that consists of v.pdf
C++ is a highlevel programming language that consists of v.pdfC++ is a highlevel programming language that consists of v.pdf
C++ is a highlevel programming language that consists of v.pdf
 
C++ Help with the section for getNextId only Program to.pdf
C++ Help with the section for getNextId only  Program to.pdfC++ Help with the section for getNextId only  Program to.pdf
C++ Help with the section for getNextId only Program to.pdf
 
C++ Help with the section for doEditTweet only NOT using s.pdf
C++ Help with the section for doEditTweet only NOT using s.pdfC++ Help with the section for doEditTweet only NOT using s.pdf
C++ Help with the section for doEditTweet only NOT using s.pdf
 
C++ Programming Exercise 9 from Chapter 16 Upload your so.pdf
C++  Programming Exercise 9 from Chapter 16 Upload your so.pdfC++  Programming Exercise 9 from Chapter 16 Upload your so.pdf
C++ Programming Exercise 9 from Chapter 16 Upload your so.pdf
 
BU RESTORAN KURTARILABLR M Juan ve Bonita Gonzales Ohio .pdf
BU RESTORAN KURTARILABLR M  Juan ve Bonita Gonzales Ohio .pdfBU RESTORAN KURTARILABLR M  Juan ve Bonita Gonzales Ohio .pdf
BU RESTORAN KURTARILABLR M Juan ve Bonita Gonzales Ohio .pdf
 
C Sao Paulodaki Lumiar okulunda snf ev devi veya oyun zam.pdf
C Sao Paulodaki Lumiar okulunda snf ev devi veya oyun zam.pdfC Sao Paulodaki Lumiar okulunda snf ev devi veya oyun zam.pdf
C Sao Paulodaki Lumiar okulunda snf ev devi veya oyun zam.pdf
 
Bu eitim modlnde sunulan biyolojik tehlike tanmndaki gve.pdf
Bu eitim modlnde sunulan biyolojik tehlike tanmndaki gve.pdfBu eitim modlnde sunulan biyolojik tehlike tanmndaki gve.pdf
Bu eitim modlnde sunulan biyolojik tehlike tanmndaki gve.pdf
 
C problem 1 Create Ellipse object Ellipse set fill to Col.pdf
C problem 1 Create Ellipse object Ellipse set fill to Col.pdfC problem 1 Create Ellipse object Ellipse set fill to Col.pdf
C problem 1 Create Ellipse object Ellipse set fill to Col.pdf
 
C Program Jrite a program called that prompts the user to en.pdf
C Program Jrite a program called that prompts the user to en.pdfC Program Jrite a program called that prompts the user to en.pdf
C Program Jrite a program called that prompts the user to en.pdf
 
c Design a Turing Machine for the following language Lab.pdf
c Design a Turing Machine for the following language Lab.pdfc Design a Turing Machine for the following language Lab.pdf
c Design a Turing Machine for the following language Lab.pdf
 
c Give the corresponding snapshots of memory after the fol.pdf
c Give the corresponding snapshots of memory after the fol.pdfc Give the corresponding snapshots of memory after the fol.pdf
c Give the corresponding snapshots of memory after the fol.pdf
 
C Program The Snake game involves controlling a snake that .pdf
C Program The Snake game involves controlling a snake that .pdfC Program The Snake game involves controlling a snake that .pdf
C Program The Snake game involves controlling a snake that .pdf
 
C Language Question 1 4 points Listen Which of the fo.pdf
C Language   Question 1 4 points   Listen Which of the fo.pdfC Language   Question 1 4 points   Listen Which of the fo.pdf
C Language Question 1 4 points Listen Which of the fo.pdf
 
C Outine Lozanos strengths and weaknesses as revealed by y.pdf
C Outine Lozanos strengths and weaknesses as revealed by y.pdfC Outine Lozanos strengths and weaknesses as revealed by y.pdf
C Outine Lozanos strengths and weaknesses as revealed by y.pdf
 
c Originally when Hubble proposed this classification he .pdf
c Originally when Hubble proposed this classification he .pdfc Originally when Hubble proposed this classification he .pdf
c Originally when Hubble proposed this classification he .pdf
 
c Explain the difference between a single user operating sy.pdf
c Explain the difference between a single user operating sy.pdfc Explain the difference between a single user operating sy.pdf
c Explain the difference between a single user operating sy.pdf
 

Último

Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
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
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 

Último (20)

Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
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...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.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
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 

C++ function to calculate X^N using while loop

  • 1. C++ only plz Write a function that takes two arguments and retruns XN using a while loop. Have the program prompt for the X and N values the print out an informative message and the answer. Then prompt again. Main must loop repeatedly until the user provides two valid values. N must not be negative. The program exits when two zeros are entered.