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


Problem

7/11

直角三角形

Problem

编写一个程序,绘制一个边为 n的直角三角形字符'm'.

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

     

Program check result

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