Get the App
SLTechnology News&Howtos  ›  Development  › 

How to print ninety-nine multiplication table with C #

Shulou Source: shulou.com Published: 2022-06-02 00:47:54 11月01日 Update

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)

Tags: Multiplication multiplication tables numbers clocks content results loops ideas knowledge statements requirements face output code that is programs articles parts jacks analysis Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Tech Info MariaDB Huawei OPPO Reno