Created
October 13, 2016 15:07
-
-
Save jciancio/c5b1a537894a5aaf776fe32da9b1bb21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tip = 40 * 0.20 | |
# total = 40 + tip | |
# my_share = total /3 | |
# puts my_share | |
# bill = 40 | |
# num_of_people = 3 | |
# tip_percent = 0.20 | |
# tax = 1.07 | |
# tip = bill * tip_percent | |
# total = bill + tip | |
# total = total * tax | |
# my_share = total /num_of_people | |
# puts "Your share of the bill is $#{my_share}" | |
# age = 12 | |
# puts "I'm #{age} year's old" | |
# arr = [1, 2, 3] | |
# p arr.delete(3) | |
# p arr | |
# str = "ACME Supplies" | |
# # puts str.downcase | |
# str.downcase! | |
# puts str | |
name = "Joe Ciancio" | |
# # Chat | |
# name = name.split(" ").join.downcase! | |
# puts name | |
# puts name | |
# a = 1 | |
# a = a.next | |
# puts a | |
# a = 1 | |
# a += 1 # a = a + 1 | |
# puts a | |
# a -= 1 # a = a - 1 | |
# a *= 3 # a = a * 3 | |
# a /= 4 # a = a / 4 | |
# API_KEY = 1 | |
# API_KEY = 2 | |
# NOT A GOOD IDEA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment