#include <iostream>
#include <string>
using namespace std;
int main(){
// perbandingan string
string input;
string nama_rahasia("ucup");
while(true){
cout << "tebak nama : ";
cin >> input;
cout << input;
if(input == nama_rahasia){
cout << " tebakan anda benar!!!!" << endl;
break;
}
cout << " tebakan anda salah!" << endl;
}
cout << "program selesai" << endl;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: