How to print ninety-nine multiplication table with C #
This article mainly introduces the relevant knowledge of how to print the ninety-nine multiplication table with C#, the content is detailed and easy to understand, the operation is simple and quick, and has a certain reference value. I believe you will gain something after reading this article on how to print the ninety-nine multiplication table with C#. Let's take a look.
1. Ninety-nine multiplication table (1) thinking analysis
The stupidest way is to enter nine Console.WriteLine () and fill in the corresponding contents in parentheses, such as 1 * 1 = 1, and so on. Obviously, if you do, what's the point of learning a programming language? I write it faster than that on paper.
First of all, we don't want to type out the numbers 1 to 9 manually, but we want the program to output 1 to 9 automatically. So you need to use a loop statement here, for example:
For (int iTunes 1)