Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int ans[6] = {1,1,1,1,1,1} //номера правильніх ответов на вопрос.
- string que[6*4] ={"вопрос1", "ответ1", "ответ2", "ответ3", "вопрос 2", ...}
- int a;
- for(int i=0; i<6;i++)
- {
- cout « que[i*4] « endl « que[i*4+1] « endl « que[i*4+2] « endl « que[i*4+3];
- cin » a;
- if(ans[i]==a) cout « "pravilno" « endl;
- else cout « "neverno" « endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment