Advertisement
Rodunskiy

Untitled

May 5th, 2024
776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2.  
  3. namespace CSLight
  4. {
  5.     public class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int number = 5;
  10.             int upNumber = 7;
  11.             bool isWorking = true;
  12.  
  13.             while (isWorking)
  14.             {
  15.                 Console.WriteLine(number);
  16.                 number = number + upNumber;
  17.                 Console.ReadKey();
  18.             }
  19.         }
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement