Last active
March 26, 2018 21:05
-
-
Save PrasannaKumarChalla/a94432e6323f0b8b14095f97c55c56bc to your computer and use it in GitHub Desktop.
ascii_art
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
require_relative 'account.rb' | |
def acc_to_ascii_table() | |
# first line | |
# 5.times do | |
# print " " | |
# 7.times{print "_"} | |
# end | |
# puts "\n" | |
puts "\n" | |
#second line | |
5.times do | |
three_dashes = "_" * 3 | |
print "|#{three_dashes}1#{three_dashes}|" | |
end | |
puts "\n" | |
#third line | |
5.times do | |
print "| #{7} |_X_|" | |
end | |
puts "\n" | |
#fourth line | |
5.times do | |
print "|___12__|" | |
# print "#{three_dashes}#{three_dashes}" | |
end | |
puts "\n\n" | |
end | |
acc_to_ascii_table | |
acc_to_ascii_table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment