Skip to content

Instantly share code, notes, and snippets.

@PrasannaKumarChalla
Last active March 26, 2018 21:05
Show Gist options
  • Save PrasannaKumarChalla/a94432e6323f0b8b14095f97c55c56bc to your computer and use it in GitHub Desktop.
Save PrasannaKumarChalla/a94432e6323f0b8b14095f97c55c56bc to your computer and use it in GitHub Desktop.
ascii_art
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