Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <string.h>
- int main(void)
- {
- char answer1;
- printf("What is the capital of Ireland? ");
- scanf("%s", answer1);
- if(answer1!="%s", answer1){
- printf("Incorrect answer")
- }
- getchar();
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement