Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- system("clear");
- printf("n1. What is the capital of Russia?n");
- printf("a)Washington DC nb)Moscownc)Copenhagennd)Stockholmn");
- scanf("%s", &answer1);
- system("clear");
- if (answer1 == 'b') {
- printf("Correct!n");
- (score += 10); //if answer is correct, score adds 10
- printf("Your score is: %in",score);
- }
- if (answer1 != 'b') {
- printf("Wrong!n");
- printf("Your score is: %in",score);
- }
Add Comment
Please, Sign In to add comment