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