This file contains hidden or 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
# Our program should | |
# - make a list of numbers from 1 to 100 (inclusive) | |
# - for each number: | |
# print "Fizz" if divisible by 3 | |
# print "Buzz" if divisible by 5 | |
# print "FizzBuzz" if divisible by 3 AND 5 | |
# otherwise, print the number | |
# uncomment the block of code you want to run to test each version |
This file contains hidden or 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
# STRINGS | |
# # we can use double quotes | |
puts "This is a string." | |
# # or we can use single quotes | |
puts 'This is a string with single quotes.' | |
# # adding two strings together | |
puts 'Hello, ' + "Maggie." | |
#INTEGER | |
#we can add them |