#include
#include
void main(){
int jawaban[3];
int jawab[3];
for (int i=0;i<=3;i++){
jawab[i]=0;
}
jawaban[0]=4;
jawaban[1]=3;
jawaban[2]=2;
jawaban[3]=1;
cout<<"Game Menyusun Paragraf agar menjadi valid.\n\n";
getch();
clrscr();
cout<<"Tips Membuat Teh Hangat\n";
cout<<"1.\n";
cout<<"2.\n";
cout<<"3.\n";
cout<<"4.\n\n\n";
cout<<"Jawaban Anda : "endl;
for (int i=0;i<=3;i++){
cout << "Langkah"<cin>>jawab[i];
}
if (jawab[0]==jawaban[0] && jawab[1]==jawaban[1] && jawab[2]==jawaban[2] && jawab[3]==jawaban[3]){
cout<<"Jawaban Anda benar";
for (int i=0;i<=3;i++){
cout << "Jawaban"<cin>>jawab[i];
}
getch();
}
else{
cout<<"Jawaban Anda salah";
for (int i=0;i<=3;i++){
}
getch();
}
}
#include
void main(){
int jawaban[3];
int jawab[3];
for (int i=0;i<=3;i++){
jawab[i]=0;
}
jawaban[0]=4;
jawaban[1]=3;
jawaban[2]=2;
jawaban[3]=1;
cout<<"Game Menyusun Paragraf agar menjadi valid.\n\n";
getch();
clrscr();
cout<<"Tips Membuat Teh Hangat\n";
cout<<"1.\n";
cout<<"2.\n";
cout<<"3.\n";
cout<<"4.\n\n\n";
cout<<"Jawaban Anda : "endl;
for (int i=0;i<=3;i++){
cout << "Langkah"<cin>>jawab[i];
}
if (jawab[0]==jawaban[0] && jawab[1]==jawaban[1] && jawab[2]==jawaban[2] && jawab[3]==jawaban[3]){
cout<<"Jawaban Anda benar";
for (int i=0;i<=3;i++){
cout << "Jawaban"<cin>>jawab[i];
}
getch();
}
else{
cout<<"Jawaban Anda salah";
for (int i=0;i<=3;i++){
}
getch();
}
}
Comments