Advertisement
Guest User

Console Input/Output - Task 8

a guest
Mar 14th, 2014
1,229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleInputOutput
  4. {
  5.     public static class OneToN
  6.     {
  7.         static void Main()
  8.         {
  9.             int n = int.Parse(Console.ReadLine());
  10.             for (int i = 1; i <= n ; i++)
  11.             {
  12.                 Console.WriteLine(i);
  13.             }
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement