Advertisement
Guest User

Untitled

a guest
Feb 18th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.49 KB | None | 0 0
  1. puts "For what year would you like to know the date of Easter? (2015-2025)"
  2. year = gets.chomp
  3. case year
  4. when "2015" then puts "April 5"
  5. when "2016" then puts "March 27"
  6. when "2017" then puts "April 16"
  7. when "2018" then puts "April 1"
  8. when "2019" then puts "April 21"
  9. when "2020" then puts "April 12"
  10. when "2021" then puts "April 4"
  11. when "2022" then puts "April 17"
  12. when "2023" then puts "April 9"
  13. when "2024" then puts "March 31"
  14. when "2025" then puts "April 20"
  15. else puts "Invalid year"
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement