fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. char t = 'T';
  8.  
  9. String v = (
  10. ( t == 'B' ) ? "bus" :
  11. ( t == 'A' ) ? "airplane" :
  12. ( t == 'T' ) ? "train" :
  13. ( t == 'C' ) ? "car" :
  14. ( t == 'H' ) ? "horse" :
  15. "feet" );
  16.  
  17. Console.WriteLine(v);
  18. }
  19. }
Success #stdin #stdout 0.03s 36864KB
stdin
Standard input is empty
stdout
train