Advertisement
Guest User

Untitled

a guest
Jun 16th, 2017
73
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[10] = {'\0'};
  8.    
  9.    
  10.   @@{  
  11.     printf("What is the capital of Ireland? ");
  12.     scanf("%s", answer1);
  13.    
  14.        
  15.     while(strcmp(answer1, "Dublin")){
  16.     printf("Incorrect, what is the capital of Ireland?")
  17.     @@ missing one
  18.    
  19.     getchar();
  20.     getchar();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement