2.3P.rtf - require\/input_functions YEAR_TRUMP_ELECTED = 2016 def read_trump(year_born value = YEAR_TRUMP_ELECTED year_born value.to_i end def main name

2.3P.rtf - require/input_functions YEAR_TRUMP_ELECTED =...

This preview shows page 1 out of 1 page.

require './input_functions'YEAR_TRUMP_ELECTED = 2016def read_trump(year_born)value = YEAR_TRUMP_ELECTED - year_bornvalue.to_ienddef mainname = read_string('Please enter your name: ')year_born = read_integer('What year were you born? ')age_when_trump_elected = read_trump(year_born)

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture