Advertisement
Guest User

Untitled

a guest
Jun 16th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <string.h>
  4.  
  5. int main(void)
  6. {
  7.     char answer1;
  8.    
  9.    
  10.     printf("What is the capital of Ireland? ");
  11.     scanf("%s", answer1);
  12.    
  13.     if(answer1!="%s", answer1){
  14.     printf("Incorrect answer")
  15. }
  16.     getchar();
  17.     getchar();
  18.    
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement