Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts "For what year would you like to know the date of Easter? (2015-2025)"
- year = gets.chomp
- case year
- when "2015" then puts "April 5"
- when "2016" then puts "March 27"
- when "2017" then puts "April 16"
- when "2018" then puts "April 1"
- when "2019" then puts "April 21"
- when "2020" then puts "April 12"
- when "2021" then puts "April 4"
- when "2022" then puts "April 17"
- when "2023" then puts "April 9"
- when "2024" then puts "March 31"
- when "2025" then puts "April 20"
- else puts "Invalid year"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement