Input may be provided on command line with N followed by increment. However, failure to provide two numbers on command line should result in user entering information at prompts.

computer science

Description

Write a program that will allow the user to generate a multiplication table. The table should range from -N to N (both columns and rows) with the maximum value of N being 10. User will specify N as well as the increment between values. Additional Requirements/Restrictions: 

• Input may be provided on command line with N followed by increment. However, failure to provide two numbers on command line should result in user entering information at prompts. 

• Program must restrict value of N to integers between 0 and 10 (inclusive) 

• Increment value must be positive.


Related Questions in computer science category