Question: Create a scratch program that asks the user to enter two positive integers X and N . The program validates that the user has entered

Create a scratch program that asks the user to enter two positive integers X and N. The program validates that the user has entered two positive numbers. Then program displays the addition tables for the numbers 1 though X, up to addition by N.
For example, if the user enters X=3 and N=4, the program displays the following outputs:
1+1=2
1+2=3
1+3=4
1+4=5
2+1=3
2+2=4
2+3=5
2+4=6
3+1=4
3+2=5
3+3=6
3+4=7
*use photos if possible*

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!