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