sasfvs

Untitled

Jul 3rd, 2017
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication1
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.  
  14.             string guess;
  15.  
  16.             do
  17.             {
  18.                 Console.WriteLine("Guess a number");
  19.                 guess = Console.ReadLine();
  20.  
  21.             } while (!guess.Equals("15"));
  22.             Console.WriteLine("Great job");
  23.             Console.ReadLine();
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment