home *** CD-ROM | disk | FTP | other *** search
/ C# & Game Programming - A…er's Guide (2nd Edition) / Buono 2nd Ed.iso / Chapter2 / 2.1 / 2.1.cs next >
Encoding:
Text File  |  2004-08-31  |  522 b   |  22 lines

  1. /* A nonresponsive program. */
  2. using System;
  3.  
  4. namespace Chapter2 {
  5.     class Class1 {
  6.         static void Main() {
  7.             // Begin main
  8.             int cResponse;
  9.  
  10.             // Step 1 û try typing N for NO 
  11.             Console.WriteLine ("Input <Y> for YES: ");   
  12.  
  13.             // Step 2
  14.             cResponse = Console.Read ();
  15.  
  16.             // Step 3
  17.             Console.WriteLine ("\n You typed Y\n"); 
  18.         }
  19.     }
  20. }                                                                      
  21.  
  22.