SlideShare a Scribd company logo
1 of 1
Download to read offline
4.19 LAB: Print string in reverse
Write a program that takes in a line of text as input, and outputs that line of text in reverse. The
program repeats, ending when the user enters "Done", "done", or "d" for the line of text.
Ex: If the input is:
then the output is:
#include <iostream>
using namespace std;
int main() {
/* Type your code here. */
return 0;
}

More Related Content

More from aarushfootwear

The Proposed Merger of Comcast and Time Warner Cable In Febr.pdf
The Proposed Merger of Comcast and Time Warner Cable In Febr.pdfThe Proposed Merger of Comcast and Time Warner Cable In Febr.pdf
The Proposed Merger of Comcast and Time Warner Cable In Febr.pdf
aarushfootwear
 
rn pazarna hakim bir firmann eitim faaliyetlerinin aratrma.pdf
rn pazarna hakim bir firmann eitim faaliyetlerinin aratrma.pdfrn pazarna hakim bir firmann eitim faaliyetlerinin aratrma.pdf
rn pazarna hakim bir firmann eitim faaliyetlerinin aratrma.pdf
aarushfootwear
 
por favor necesito una respuesta nica use sus propias pal.pdf
por favor necesito una respuesta nica use sus propias pal.pdfpor favor necesito una respuesta nica use sus propias pal.pdf
por favor necesito una respuesta nica use sus propias pal.pdf
aarushfootwear
 
PREGUNTA 11 Cul de los siguientes es ms probable que gen.pdf
PREGUNTA 11  Cul de los siguientes es ms probable que gen.pdfPREGUNTA 11  Cul de los siguientes es ms probable que gen.pdf
PREGUNTA 11 Cul de los siguientes es ms probable que gen.pdf
aarushfootwear
 

More from aarushfootwear (20)

The world population now in 2021 is about 79 billion peop.pdf
The world population now in 2021 is about 79 billion peop.pdfThe world population now in 2021 is about 79 billion peop.pdf
The world population now in 2021 is about 79 billion peop.pdf
 
The Proposed Merger of Comcast and Time Warner Cable In Febr.pdf
The Proposed Merger of Comcast and Time Warner Cable In Febr.pdfThe Proposed Merger of Comcast and Time Warner Cable In Febr.pdf
The Proposed Merger of Comcast and Time Warner Cable In Febr.pdf
 
The following table lists the current average Social Securit.pdf
The following table lists the current average Social Securit.pdfThe following table lists the current average Social Securit.pdf
The following table lists the current average Social Securit.pdf
 
Suppose the work on ObjectOriented Design starts with the .pdf
Suppose the work on ObjectOriented Design starts with the .pdfSuppose the work on ObjectOriented Design starts with the .pdf
Suppose the work on ObjectOriented Design starts with the .pdf
 
Exercise 29 Algo Recording materials labor and overhead.pdf
Exercise 29 Algo Recording materials labor and overhead.pdfExercise 29 Algo Recording materials labor and overhead.pdf
Exercise 29 Algo Recording materials labor and overhead.pdf
 
Suppose that the following instructions are found at the giv.pdf
Suppose that the following instructions are found at the giv.pdfSuppose that the following instructions are found at the giv.pdf
Suppose that the following instructions are found at the giv.pdf
 
Sorumlu ekoturizmde lider olan Lindblad Expeditionsn Galapa.pdf
Sorumlu ekoturizmde lider olan Lindblad Expeditionsn Galapa.pdfSorumlu ekoturizmde lider olan Lindblad Expeditionsn Galapa.pdf
Sorumlu ekoturizmde lider olan Lindblad Expeditionsn Galapa.pdf
 
research a busy week at an arena in the major city closest t.pdf
research a busy week at an arena in the major city closest t.pdfresearch a busy week at an arena in the major city closest t.pdf
research a busy week at an arena in the major city closest t.pdf
 
rn pazarna hakim bir firmann eitim faaliyetlerinin aratrma.pdf
rn pazarna hakim bir firmann eitim faaliyetlerinin aratrma.pdfrn pazarna hakim bir firmann eitim faaliyetlerinin aratrma.pdf
rn pazarna hakim bir firmann eitim faaliyetlerinin aratrma.pdf
 
Please help Topic Tobacco used It is expected that the Outl.pdf
Please help Topic Tobacco used It is expected that the Outl.pdfPlease help Topic Tobacco used It is expected that the Outl.pdf
Please help Topic Tobacco used It is expected that the Outl.pdf
 
Problem Lets discuss the role of the CIO as customer advoc.pdf
Problem Lets discuss the role of the CIO as customer advoc.pdfProblem Lets discuss the role of the CIO as customer advoc.pdf
Problem Lets discuss the role of the CIO as customer advoc.pdf
 
por favor necesito una respuesta nica use sus propias pal.pdf
por favor necesito una respuesta nica use sus propias pal.pdfpor favor necesito una respuesta nica use sus propias pal.pdf
por favor necesito una respuesta nica use sus propias pal.pdf
 
public boolean FUNint Aint s int howmany .pdf
public boolean FUNint Aint s int howmany             .pdfpublic boolean FUNint Aint s int howmany             .pdf
public boolean FUNint Aint s int howmany .pdf
 
NACEnin Nisan 2014 Maa Aratrmasna gre mhendislik blmler.pdf
NACEnin Nisan 2014 Maa Aratrmasna gre mhendislik blmler.pdfNACEnin Nisan 2014 Maa Aratrmasna gre mhendislik blmler.pdf
NACEnin Nisan 2014 Maa Aratrmasna gre mhendislik blmler.pdf
 
PREGUNTA 11 Cul de los siguientes es ms probable que gen.pdf
PREGUNTA 11  Cul de los siguientes es ms probable que gen.pdfPREGUNTA 11  Cul de los siguientes es ms probable que gen.pdf
PREGUNTA 11 Cul de los siguientes es ms probable que gen.pdf
 
Describe in your own words an EDI fallout report Discuss wh.pdf
Describe in your own words an EDI fallout report Discuss wh.pdfDescribe in your own words an EDI fallout report Discuss wh.pdf
Describe in your own words an EDI fallout report Discuss wh.pdf
 
Marketers working in the public interest focus on getting th.pdf
Marketers working in the public interest focus on getting th.pdfMarketers working in the public interest focus on getting th.pdf
Marketers working in the public interest focus on getting th.pdf
 
Dos de los miembros de su equipo Cynthia y Shelly nunca pa.pdf
Dos de los miembros de su equipo Cynthia y Shelly nunca pa.pdfDos de los miembros de su equipo Cynthia y Shelly nunca pa.pdf
Dos de los miembros de su equipo Cynthia y Shelly nunca pa.pdf
 
La compensacin bsica en el proceso de inversin es entre .pdf
La compensacin bsica en el proceso de inversin es  entre .pdfLa compensacin bsica en el proceso de inversin es  entre .pdf
La compensacin bsica en el proceso de inversin es entre .pdf
 
INDIVIDUAL DEVELOPMENT PLAN INDIVIDUAL DEVELOPMENT PLAN Indi.pdf
INDIVIDUAL DEVELOPMENT PLAN INDIVIDUAL DEVELOPMENT PLAN Indi.pdfINDIVIDUAL DEVELOPMENT PLAN INDIVIDUAL DEVELOPMENT PLAN Indi.pdf
INDIVIDUAL DEVELOPMENT PLAN INDIVIDUAL DEVELOPMENT PLAN Indi.pdf
 

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 

Recently uploaded (20)

ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 

419 LAB Print string in reverse Write a program that takes.pdf

  • 1. 4.19 LAB: Print string in reverse Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Done", "done", or "d" for the line of text. Ex: If the input is: then the output is: #include <iostream> using namespace std; int main() { /* Type your code here. */ return 0; }