Question
Write a C# program that display multiplication tables. The program lets the user input a number from a text box, then the user clicks Show
Write a C# program that display multiplication tables. The program lets the user input a number from a text box, then the user clicks "Show" button, then the multiplication table of the input number will be printed out, from 1 to 12, line by line in a output label. A check box called "Reverse" will be provided. If the check box is checked, the the multiplication table will be printed in reverse order (from 12 to 1). You MUST use "for loop" to create multiplication table.
Example: If the user input 3 and Reverse check box is/isn't checked, then the final result will be displayed as follows:
Not checked | Checked |
3 x 1 = 3 | 3 x 12 = 36 |
3 x 2 = 6 | 3 x 11 = 33 |
3 x 3 = 9 | 3 x 10 = 30 |
3 x 4 = 12 | 3 x 9 = 27 |
3 x 5 = 15 | 3 x 8 = 24 |
3 x 6 = 18 | 3 x 7 = 21 |
3 x 7 = 21 | 3 x 6 = 18 |
3 x 8 = 24 | 3 x 5 = 15 |
3 x 9 = 27 | 3 x 4 = 12 |
3 x 10 = 30 | 3 x 3 = 9 |
3 x 11 = 33 | 3 x 2 = 6 |
3 x 12 = 36 | 3 x 1 = 3 |
Specifications
Choose an appropriate name for your solution/project
Rename the form.
Change the Name/Text properties of the controls and use prefixes (abbreviations)
Change the following properties of your form (AcceptButton, CancelButton, Text)
Include comments in your code.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started