[C# applet] Implementation code of Xiaojiujiu multiplication table of command line applet

高洛峰
Release: 2017-03-24 13:05:50
Original
1892 people have browsed it

Write a small multiplication table in C

#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace ConsoleManyHellos
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("打印小九九乘法表");
            int i, j;            
            for (i = 1; i <= 9; i++)
            {
                for (j=1; j<=i; j++)
                {
                    Console.Write("{0} * {1} = {2}\t", i, j, i * j);
                }
                Console.WriteLine();
            }
        }
    }
}
Copy after login

[C# applet] Implementation code of Xiaojiujiu multiplication table of command line applet

The above is the detailed content of [C# applet] Implementation code of Xiaojiujiu multiplication table of command line applet. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template