Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. ========================================
  2. Here is an example on the set of animals
  3. Set S = { }
  4. Note that the elements in S are distinct and not in order
  5.  
  6. Wish to try the following operations?
  7. 1. Add an element to the set
  8. 2. Check an element in the set
  9. 3. Check the cardinality
  10. 9. Quit
  11.  
  12. Your choice: 1
  13. ========================================
  14. Current Set S = { }
  15.  
  16. Enter an element: Tiger
  17. 1
  18. New Set S = {Tiger}
  19. Wish to try the following operations?
  20. 1. Add an element to the set
  21. 2. Check an element in the set
  22. 3. Check the cardinality
  23. 9. Quit
  24.  
  25. Your choice: 1
  26. ========================================
  27. Current Set S = {Tiger}
  28.  
  29. Enter an element: Tiger
  30. 1
  31. 2
  32. New Set S = {Tiger,Tiger}
  33. Wish to try the following operations?
  34. 1. Add an element to the set
  35. 2. Check an element in the set
  36. 3. Check the cardinality
  37. 9. Quit
  38.  
  39. Your choice: 1
  40. ========================================
  41. Current Set S = {Tiger,Tiger}
  42.  
  43. Enter an element: Tiger
  44. 1
  45. 2
  46. 3
  47. New Set S = {Tiger,Tiger,Tiger}
  48. Wish to try the following operations?
  49. 1. Add an element to the set
  50. 2. Check an element in the set
  51. 3. Check the cardinality
  52. 9. Quit
  53.  
  54. Your choice: 1
  55. ========================================
  56. Current Set S = {
  57. Press Enter to return to Quincy...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement