Given two integers, write a method that returns results of their elementary arithmetic operations: addition, substraction, multiplication, division. Remember that you can't divide any number by 0!

Expected input and output

ElementaryOperations(3, 8) → 11, -5, 24, 0.375

using System; namespace CSharpExercises.Exercises.Basics { class ElementaryOperationsTask { public static string ElementaryOperations(int a, int b) { int addition = a + b; int substraction = a - b; int multiplication = a * b; double division; if (b != 0) { division = a / (double)b; } else // assume that division by 0 returns 0 { division = 0; } return String.Format($"a + b = {addition}, a - b = {substraction}, a * b = {multiplication}, a / b = {division}"); } public static void Main() { Console.WriteLine(ElementaryOperations(36, 15)); // a + b = 51, a - b = 21, a * b = 540, a / b = 2.4 Console.WriteLine(ElementaryOperations(-375, 25)); // a + b = -350, a - b = -400, a * b = -9375, a / b = -15 } } }