fork download
  1. using System;
  2.  
  3. namespace Sample
  4. {
  5. internal class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int num1 = 100;
  10. int num2 = 10;
  11. int result1 = num1 + num2;
  12. Console.WriteLine("num1 + num2 = " + result1);
  13. int result2 = num1 - num2;
  14. Console.WriteLine("num1 - num2 = " + result2);
  15. int result3 = num1 * num2;
  16. Console.WriteLine("num1 * num2 = " + result3);
  17. int result4 = num1 / num2;
  18. Console.WriteLine("num1 / num2 = " + result4);
  19. int result5 = num1 % num2;
  20. Console.WriteLine("num1 % num2 = " + result5);
  21. }
  22. }
  23. }
Success #stdin #stdout 0.03s 24364KB
stdin
Standard input is empty
stdout
num1 + num2 = 110
num1 - num2 = 90
num1 * num2 = 1000
num1 / num2 = 10
num1 % num2 = 0