fork download
  1. using System;
  2. public class Test
  3. {
  4. public static void Main()
  5. {
  6. Console.WriteLine("The C# Subtract/Divide Program.");
  7. int num1 = 50;
  8. int num2 = 25;
  9. int num3 = (num1 - num2);
  10. Console.WriteLine("NUM1 " + num1 + " NUM2 " + num2 + " NUM3 " + num3);
  11. int num4 = 289;
  12. int num5 = 17;
  13. int num6 = (num4 / num5);
  14. Console.WriteLine("NUM4 " + num4 + " NUM5 " + num5 + " NUM6 " + num6);
  15. }
  16. }
Success #stdin #stdout 0.02s 24032KB
stdin
1
2
10
42
11
stdout
The C# Subtract/Divide Program.
NUM1 50 NUM2 25 NUM3 25
NUM4 289 NUM5 17 NUM6 17