Advertisement
amrulHarahap

Program Menggabung String

Dec 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. // Program menggabungkan dua buah string
  2. // Task No.4 file 066-P03.pptx
  3. // Amrul Mubarak Harahap
  4. // 19T03 - 1901098
  5. #include <iostream>
  6. #include <string>
  7. #include <cstring>
  8. using namespace std;
  9.  
  10. int main(){
  11.     string kalimat1, kalimat2;
  12.  
  13.     cout << "Masukkan kalimat pertama: ";getline(cin, kalimat1);
  14.     cout << "Masukkan kalimat kedua: ";getline(cin, kalimat2);
  15.  
  16.     cout << kalimat1 << kalimat2 << endl;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement