coasterka

#4NumsFromOneToN

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