Advertisement
Masovski

[C# Basics][Loops-HW] 1. Numbers from 1 to N

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