Guest User

Untitled

a guest
Mar 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. system("clear");
  2. printf("n1. What is the capital of Russia?n");
  3. printf("a)Washington DC nb)Moscownc)Copenhagennd)Stockholmn");
  4. scanf("%s", &answer1);
  5. system("clear");
  6.  
  7.  
  8. if (answer1 == 'b') {
  9. printf("Correct!n");
  10. (score += 10); //if answer is correct, score adds 10
  11. printf("Your score is: %in",score);
  12. }
  13.  
  14. if (answer1 != 'b') {
  15. printf("Wrong!n");
  16. printf("Your score is: %in",score);
  17. }
Add Comment
Please, Sign In to add comment