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


Problem

4/11

矩形:编写程序

Problem

编写一个采用单个 – 的程序自然数 N, –并显示一个长为N 、高为3个字符的矩形(使用英文字母'o'作为字符)。

示例。
<正文>
 
输入 版本说明
7 呜呜呜
呜呜呜

呜呜呜
1
using System;   
2
class Program {   
3
    static void printRectangle(int N) {   
4
5
6
7
8
9
10
11
12
    }   
13
    static void Main() {   
14
        int N = Convert.ToInt32(Console.ReadLine());   
15
        printRectangle(N);   
16
    }   
17
}   

     

Program check result

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