Sha256: e32e98e49fe87e0db9f24bee038b83bbcc3ad9a939530040008829f62529445d
Contents?: true
Size: 321 Bytes
Versions: 2
Compression:
Stored size: 321 Bytes
Contents
require_relative 'lib/prime_table' puts 'Enter the number' @num = gets.chomp @num = @num.to_i puts PrimeTable::LESS_THAN_ZERO if @num <= 0 puts "Generating prime product table for #{@num} records" if @num > 0 table = @num <= 0 ? PrimeTable::TabularView.new : PrimeTable::TabularView.new(n:@num.to_i) puts table.tableize
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
generate_prime_table-0.1.11 | table_generator_example.rb |
generate_prime_table-0.1.1 | table_generator.rb |