fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Console.WriteLine("The C# Add 2 Numbers Program.");
  8. int x = 10;
  9. int y = 10;
  10. int z = (x + y);
  11. Console.WriteLine("X " + x + " Y " + y + " Z " + z);
  12. }
  13. }
Success #stdin #stdout 0.02s 26308KB
stdin
1
2
10
42
11
stdout
The C# Add 2 Numbers Program.
X 10 Y 10 Z 20