SlideShare a Scribd company logo
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 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
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
 
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
aarushfootwear
 
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
aarushfootwear
 
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
aarushfootwear
 
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
aarushfootwear
 
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
aarushfootwear
 
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
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
 
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
aarushfootwear
 
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
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
 
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
aarushfootwear
 
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
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
 
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
aarushfootwear
 
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
aarushfootwear
 
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
aarushfootwear
 
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
aarushfootwear
 
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
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

Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 

Recently uploaded (20)

Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 

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; }