nguyentruong98

Untitled

Dec 9th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.85 KB | None | 0 0
  1. int main()
  2. {
  3.       int a;
  4.     printf("1. Read input from text file\n");
  5.     printf("2. Print total number of gates\n");
  6.     printf("3. Print total number of isles\n");
  7.     printf("4. Find total number of direct and undirect connected cells of a walkable cell\n");
  8.     printf("5. Find whether or not can the treasure cell reachable\n");
  9.     printf("6. Exit program\n");
  10.       scanf("%d",&a);
  11.       switch(a)
  12.       {
  13.             case 1:
  14.             printf("mot\n");
  15.             break;
  16.             case 2:
  17.             printf("hai\n");
  18.             break;
  19.             case 3:
  20.             printf("ba\n");
  21.             break;
  22.             case 4:
  23.             printf("bon\n");
  24.             break;
  25.             case 5:
  26.             printf("nam\n");
  27.             break;
  28.             case 6:
  29.             printf("Exit\n");
  30.             break;
  31.             default:
  32.             break;
  33.       }
  34.       return 0;
  35. }
Add Comment
Please, Sign In to add comment