Advertisement
iliqnvidenov

numbers from 1 to N

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