Spocoman

09. Numbers from 1 to 10

Nov 19th, 2021 (edited)
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. using System;
  2.  
  3. namespace NumbersFromOneToTen
  4. {
  5.     class Program
  6.     {
  7.         static void Main()
  8.         {
  9.             int num = 1;
  10.  
  11.             do
  12.             {
  13.                 Console.WriteLine(num);
  14.                 num++;
  15.             } while (num < 11);
  16.         }
  17.     }
  18. }
Add Comment
Please, Sign In to add comment