Aliendreamer

pesho's years

May 18th, 2018
298
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.  
  3. namespace randomcheck
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int count = 0;
  10.             int  candles=210;
  11.  
  12.             while(candles>0)
  13.             {
  14.                
  15.                 count++;
  16.                 candles -=count;
  17.             }
  18.  
  19.             Console.WriteLine(count);
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment