SlideShare a Scribd company logo
1 of 2
Program C++
                                   Membalik Kata

Ini sintaksnya :

#include    <iostream.h>
#include    <string.h>
#include    <windows.h>
#include    <conio.h>

void main()
{
      char string[20];
      char j;
      int nama;

       do
       {
               system("cls");

               cout<<"================================="<<endl;
               cout<<"| == PROGRAM MEMBALIK KATA == |"<<endl;
               cout<<"=================================";
               cout<<endl<<endl<<endl;
               cout<<"Masukkan kata yg ingin dibalik : ";
               cin>>string;
               cout<<endl;
               nama = strlen(string) - 1;
               cout<<"Kata setelah dibalik : ";

               while (nama >= 0)
               {
                     cout<<string[nama];
                     nama=nama-1;
               }
               cout<<"n";

       cout<<endl;
       cout<<"Pengen Coba Lagi(Y/N) ";
       cin>>j;
       }
       while (j == 'Y' || j == 'y');

       getche();
}


Dan ini keluarannya :
C++ Program Reverses Words

More Related Content

What's hot

Materi Basis Data tentang Hirarki dan abtraksi data
Materi Basis Data tentang Hirarki dan abtraksi dataMateri Basis Data tentang Hirarki dan abtraksi data
Materi Basis Data tentang Hirarki dan abtraksi dataI Gede Iwan Sudipa
 
Matematika Diskrit - 05 rekursi dan relasi rekurens - 01
Matematika Diskrit - 05 rekursi dan relasi rekurens - 01Matematika Diskrit - 05 rekursi dan relasi rekurens - 01
Matematika Diskrit - 05 rekursi dan relasi rekurens - 01KuliahKita
 
Algoritma dan Struktur Data - Stack
Algoritma dan Struktur Data - StackAlgoritma dan Struktur Data - Stack
Algoritma dan Struktur Data - StackKuliahKita
 
8. Multi List (Struktur Data)
8. Multi List (Struktur Data)8. Multi List (Struktur Data)
8. Multi List (Struktur Data)Kelinci Coklat
 
Bab 5 penyederhanaan fungsi boolean
Bab 5 penyederhanaan fungsi booleanBab 5 penyederhanaan fungsi boolean
Bab 5 penyederhanaan fungsi booleanCliquerz Javaneze
 
Pengertian olahraga & kebugaran jasmani
Pengertian olahraga & kebugaran jasmaniPengertian olahraga & kebugaran jasmani
Pengertian olahraga & kebugaran jasmaniDimas Kusuma Wijanarko
 
Slide week 2a bilangan kompleks
Slide week 2a   bilangan kompleksSlide week 2a   bilangan kompleks
Slide week 2a bilangan kompleksBeny Nugraha
 
Komposisi fungsi
Komposisi fungsiKomposisi fungsi
Komposisi fungsiLien Wu
 
Algoritma dan Struktur Data - Insertion Sort
Algoritma dan Struktur Data - Insertion SortAlgoritma dan Struktur Data - Insertion Sort
Algoritma dan Struktur Data - Insertion SortKuliahKita
 
Matematika Diskrit - 08 kombinatorial - 02
Matematika Diskrit - 08 kombinatorial - 02Matematika Diskrit - 08 kombinatorial - 02
Matematika Diskrit - 08 kombinatorial - 02KuliahKita
 
19. modul turunan (diferensial) pak sukani
19. modul turunan (diferensial) pak sukani19. modul turunan (diferensial) pak sukani
19. modul turunan (diferensial) pak sukanisukani
 
Materi aljabar boolean
Materi aljabar booleanMateri aljabar boolean
Materi aljabar booleanMustahal SSi
 
12. contoh soal uts statistika
12. contoh soal uts statistika12. contoh soal uts statistika
12. contoh soal uts statistikaaliyudin007
 

What's hot (20)

Materi Basis Data tentang Hirarki dan abtraksi data
Materi Basis Data tentang Hirarki dan abtraksi dataMateri Basis Data tentang Hirarki dan abtraksi data
Materi Basis Data tentang Hirarki dan abtraksi data
 
Matematika Diskrit - 05 rekursi dan relasi rekurens - 01
Matematika Diskrit - 05 rekursi dan relasi rekurens - 01Matematika Diskrit - 05 rekursi dan relasi rekurens - 01
Matematika Diskrit - 05 rekursi dan relasi rekurens - 01
 
Algoritma dan Struktur Data - Stack
Algoritma dan Struktur Data - StackAlgoritma dan Struktur Data - Stack
Algoritma dan Struktur Data - Stack
 
Stack atau tumpukan
Stack atau tumpukanStack atau tumpukan
Stack atau tumpukan
 
limit fungsi tak hingga
limit fungsi tak hinggalimit fungsi tak hingga
limit fungsi tak hingga
 
8. Multi List (Struktur Data)
8. Multi List (Struktur Data)8. Multi List (Struktur Data)
8. Multi List (Struktur Data)
 
Kalkulus modul limit fungsi
Kalkulus modul limit fungsiKalkulus modul limit fungsi
Kalkulus modul limit fungsi
 
Bagian bagian sistem operasi
Bagian bagian sistem operasiBagian bagian sistem operasi
Bagian bagian sistem operasi
 
Analisis Riel 1
Analisis Riel 1Analisis Riel 1
Analisis Riel 1
 
Bab 5 penyederhanaan fungsi boolean
Bab 5 penyederhanaan fungsi booleanBab 5 penyederhanaan fungsi boolean
Bab 5 penyederhanaan fungsi boolean
 
Pengertian olahraga & kebugaran jasmani
Pengertian olahraga & kebugaran jasmaniPengertian olahraga & kebugaran jasmani
Pengertian olahraga & kebugaran jasmani
 
Slide week 2a bilangan kompleks
Slide week 2a   bilangan kompleksSlide week 2a   bilangan kompleks
Slide week 2a bilangan kompleks
 
Komposisi fungsi
Komposisi fungsiKomposisi fungsi
Komposisi fungsi
 
3 model data
3 model data3 model data
3 model data
 
Algoritma dan Struktur Data - Insertion Sort
Algoritma dan Struktur Data - Insertion SortAlgoritma dan Struktur Data - Insertion Sort
Algoritma dan Struktur Data - Insertion Sort
 
Bola basket
Bola basketBola basket
Bola basket
 
Matematika Diskrit - 08 kombinatorial - 02
Matematika Diskrit - 08 kombinatorial - 02Matematika Diskrit - 08 kombinatorial - 02
Matematika Diskrit - 08 kombinatorial - 02
 
19. modul turunan (diferensial) pak sukani
19. modul turunan (diferensial) pak sukani19. modul turunan (diferensial) pak sukani
19. modul turunan (diferensial) pak sukani
 
Materi aljabar boolean
Materi aljabar booleanMateri aljabar boolean
Materi aljabar boolean
 
12. contoh soal uts statistika
12. contoh soal uts statistika12. contoh soal uts statistika
12. contoh soal uts statistika
 

Viewers also liked

Remaja dan masalahnya
Remaja dan masalahnyaRemaja dan masalahnya
Remaja dan masalahnyahaqiemisme
 
Persiapan dan Kebutuhan Perakitan Komputer
Persiapan dan Kebutuhan Perakitan KomputerPersiapan dan Kebutuhan Perakitan Komputer
Persiapan dan Kebutuhan Perakitan Komputerhaqiemisme
 
Mempengaruhi karakteristik afektif siswa
Mempengaruhi karakteristik afektif siswaMempengaruhi karakteristik afektif siswa
Mempengaruhi karakteristik afektif siswahaqiemisme
 
remaja dan masalahnya
remaja dan masalahnyaremaja dan masalahnya
remaja dan masalahnyahaqiemisme
 
Isi makalah k3 komputer
Isi makalah k3 komputerIsi makalah k3 komputer
Isi makalah k3 komputerhaqiemisme
 
Relasi dan fungsi - matematika diskrit
Relasi dan fungsi - matematika diskritRelasi dan fungsi - matematika diskrit
Relasi dan fungsi - matematika diskrithaqiemisme
 
PPT fisika pesawat
PPT fisika pesawatPPT fisika pesawat
PPT fisika pesawathaqiemisme
 

Viewers also liked (9)

Remaja dan masalahnya
Remaja dan masalahnyaRemaja dan masalahnya
Remaja dan masalahnya
 
Cache memory
Cache memoryCache memory
Cache memory
 
RISC dan CISC
RISC dan CISCRISC dan CISC
RISC dan CISC
 
Persiapan dan Kebutuhan Perakitan Komputer
Persiapan dan Kebutuhan Perakitan KomputerPersiapan dan Kebutuhan Perakitan Komputer
Persiapan dan Kebutuhan Perakitan Komputer
 
Mempengaruhi karakteristik afektif siswa
Mempengaruhi karakteristik afektif siswaMempengaruhi karakteristik afektif siswa
Mempengaruhi karakteristik afektif siswa
 
remaja dan masalahnya
remaja dan masalahnyaremaja dan masalahnya
remaja dan masalahnya
 
Isi makalah k3 komputer
Isi makalah k3 komputerIsi makalah k3 komputer
Isi makalah k3 komputer
 
Relasi dan fungsi - matematika diskrit
Relasi dan fungsi - matematika diskritRelasi dan fungsi - matematika diskrit
Relasi dan fungsi - matematika diskrit
 
PPT fisika pesawat
PPT fisika pesawatPPT fisika pesawat
PPT fisika pesawat
 

Similar to C++ Program Reverses Words

Powerpoint loop examples a
Powerpoint loop examples aPowerpoint loop examples a
Powerpoint loop examples ajaypeebala
 
ch5_additional.ppt
ch5_additional.pptch5_additional.ppt
ch5_additional.pptLokeshK66
 
Please teach me how to fix the errors and where should be modified. .pdf
Please teach me how to fix the errors and where should be modified. .pdfPlease teach me how to fix the errors and where should be modified. .pdf
Please teach me how to fix the errors and where should be modified. .pdfamarndsons
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++Dendi Riadi
 
54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101premrings
 
CBSE Class XI Programming in C++
CBSE Class XI Programming in C++CBSE Class XI Programming in C++
CBSE Class XI Programming in C++Pranav Ghildiyal
 
Programa Sumar y Multiplicar
Programa Sumar y MultiplicarPrograma Sumar y Multiplicar
Programa Sumar y MultiplicarAnais Rodriguez
 
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloading2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloadingkinan keshkeh
 
Programming - Marla Fuentes
Programming - Marla FuentesProgramming - Marla Fuentes
Programming - Marla Fuentesmfuentessss
 
Assignment (page 120 no 2) coding
Assignment (page 120 no 2) codingAssignment (page 120 no 2) coding
Assignment (page 120 no 2) codingewanz89
 
Please use the code below and make it operate as one program- Notating.pdf
Please use the code below and make it operate as one program- Notating.pdfPlease use the code below and make it operate as one program- Notating.pdf
Please use the code below and make it operate as one program- Notating.pdfseoagam1
 
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみたChainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみたAkira Maruoka
 

Similar to C++ Program Reverses Words (20)

Penjualan swalayan
Penjualan swalayanPenjualan swalayan
Penjualan swalayan
 
goto dengan C++
goto dengan C++goto dengan C++
goto dengan C++
 
project3
project3project3
project3
 
Project in programming
Project in programmingProject in programming
Project in programming
 
Cpp c++ 1
Cpp c++ 1Cpp c++ 1
Cpp c++ 1
 
Powerpoint loop examples a
Powerpoint loop examples aPowerpoint loop examples a
Powerpoint loop examples a
 
C++ TUTORIAL 3
C++ TUTORIAL 3C++ TUTORIAL 3
C++ TUTORIAL 3
 
ch5_additional.ppt
ch5_additional.pptch5_additional.ppt
ch5_additional.ppt
 
Please teach me how to fix the errors and where should be modified. .pdf
Please teach me how to fix the errors and where should be modified. .pdfPlease teach me how to fix the errors and where should be modified. .pdf
Please teach me how to fix the errors and where should be modified. .pdf
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++
 
54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101
 
C++ practical
C++ practicalC++ practical
C++ practical
 
CBSE Class XI Programming in C++
CBSE Class XI Programming in C++CBSE Class XI Programming in C++
CBSE Class XI Programming in C++
 
Programa Sumar y Multiplicar
Programa Sumar y MultiplicarPrograma Sumar y Multiplicar
Programa Sumar y Multiplicar
 
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloading2 BytesC++ course_2014_c3_ function basics&parameters and overloading
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
 
Programming - Marla Fuentes
Programming - Marla FuentesProgramming - Marla Fuentes
Programming - Marla Fuentes
 
Assignment (page 120 no 2) coding
Assignment (page 120 no 2) codingAssignment (page 120 no 2) coding
Assignment (page 120 no 2) coding
 
Ch4
Ch4Ch4
Ch4
 
Please use the code below and make it operate as one program- Notating.pdf
Please use the code below and make it operate as one program- Notating.pdfPlease use the code below and make it operate as one program- Notating.pdf
Please use the code below and make it operate as one program- Notating.pdf
 
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみたChainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみた
 

Recently uploaded

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
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
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
 
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
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
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
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 

Recently uploaded (20)

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
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
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...
 
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...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
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
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 
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
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 

C++ Program Reverses Words

  • 1. Program C++ Membalik Kata Ini sintaksnya : #include <iostream.h> #include <string.h> #include <windows.h> #include <conio.h> void main() { char string[20]; char j; int nama; do { system("cls"); cout<<"================================="<<endl; cout<<"| == PROGRAM MEMBALIK KATA == |"<<endl; cout<<"================================="; cout<<endl<<endl<<endl; cout<<"Masukkan kata yg ingin dibalik : "; cin>>string; cout<<endl; nama = strlen(string) - 1; cout<<"Kata setelah dibalik : "; while (nama >= 0) { cout<<string[nama]; nama=nama-1; } cout<<"n"; cout<<endl; cout<<"Pengen Coba Lagi(Y/N) "; cin>>j; } while (j == 'Y' || j == 'y'); getche(); } Dan ini keluarannya :