16 lines
483 B
Ruby
16 lines
483 B
Ruby
shoppingList = [("store_Items"), ("store_Items2")]
|
|
puts "What do you want to add to your shopping list?"
|
|
store_Items = gets.chomp.to_s
|
|
|
|
|
|
puts ("You've added #{store_items} in your cart")
|
|
puts "Do you wish to add anything else?"
|
|
store_Items2 = gets.to_s
|
|
puts ("You've added #{store_Items2} in your cart")
|
|
#save store_Items2, store_Items in shoppingList
|
|
puts "Would you like to view your items?"
|
|
store_Items.include? "yes"
|
|
|
|
puts "Thanks for using us!"
|
|
|
|
puts "#{shoppingList}"
|