Module: 子程序:过程和函数 - 1


Problem

9/11

三角形以不同的方式

Problem

编写一个程序,打印一个带有  n 个字符 ' 的直角三角形它的侧面;m'。

示例。

 

<正文>

 

输入 输出
3  米
 毫米
嗯嗯
1
using System;   
2
class Program {   
3
    static void printTriangle(int n) {   
4
5
6
7
8
9
10
11
12
13
14
15
16
    }   
17
    static void Main() {   
18
        int n = Convert.ToInt32(Console.ReadLine());   
19
        printTriangle(n);   
20
    }   
21
}   
22


                                                   

     

Program check result

To check the solution of the problem, you need to register or log in!