Some Eid Ruby :)
Published in
1 min readJul 16, 2015
[caption id=”” align=”aligncenter” width=”256"]
source: https://cdn.tutsplus.com/net/uploads/legacy/966_essentialReading/images/rubylang.png[/caption]
A cute little program that asks the guy who usually announces Eid whether tomorrow is Eid or not:
def eidTest
puts “Hlayyel is tomorrow Eid?”
isEid = gets.chomp
if isEid == “no”
puts “aw man :(“
elsif isEid == “yes”
puts “Happy Eid”
else
puts “it’s either yes or no!”
end
end
eidTest
Happy Eid everyone :)