Question: Program is in c++ just need help with the lower portion with creating the 2d struct array and etc 2 Set your program up to
2 Set your program up to read the number n as a command line argument For example, if the user runs your program like this, you will have n 5: muldiv5 Make sure to check whether the user inputs a valid integer value, and exit the program with an error it they do not. The function atoi toi will be helpful for this step, e g n atoi (argv [1] ) 3 Write a stzuct like this one to store a single entry in both the multiplication table and the division table struct muldivlentry int mul float div 4. Write a program that uses n and your struct to generate and then print the multiplication and division tables for all values between 1 and n, inclusive. For example, if the user runs your program as follows, then it should print the multiplication and division tables like below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
