Advertisement
Masovski

6. PrintNumbers

Mar 7th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. // Write a program to print the numbers 1 (one), 101 (one hundred and one) and 1001 (one thousand and one), each at a separate line.
  2. using System;
  3.  
  4. class PrintNumbers
  5. {
  6.     static void Main()
  7.     {
  8.         Console.WriteLine(1);
  9.     Console.WriteLine(101);
  10.         Console.WriteLine(1001);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement