1108 -- 最简单的循环

来源:互联网 发布:implode 二维数组 编辑:程序博客网 时间:2024/06/06 01:15

最简单的循环

Time Limit:1000MS  Memory Limit:65536K
Total Submit:265 Accepted:233

Description

输入一个正整数n(1000以内),输出1~n

Input

输入一个正整数n

Output

输出1~n 每一个一行

Sample Input

3

Sample Output

123

Source

lrj程序入门

    using System;    using System.Collections.Generic;    using System.Linq;    using System.Text;    namespace AK1108 {        class Program {            static void Main(string[] args) {                int n = int.Parse(Console.ReadLine());                for (int i = 1; i <= n; i++) {                    Console.WriteLine(i);                }            }        }    }


0 0