Advertisement
EleonoraKisyova

Problem 8 * Numbers from 1 to n

Jun 3rd, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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. for (int i = 1; i <= n; i++)
  9. {
  10. Console.WriteLine(i);
  11. }
  12.  
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement