Hello, I’m working on this task:

Your program should read two integers each from the prompt. Then, it should output the sum, difference, product, and quotient of those numbers. If the second number is zero, the program should output the sum, the difference, and the product, but instead of the quotient, it should print “Can’t divide by zero!”
Example 1:
>12
>4
16
8
48
3

Example 2:
>12
>0
12
12
0
Can’t divide by zero!

Here is my code:

``````
{
class MathOperations
{
static void Main(string[] args)
{

int a = int.Parse(aString);
int b = int.Parse(bString);

Console.WriteLine(\$"{a + b}");

if (b == 0)
{
Console.WriteLine("Can't divide by zero!");
}
else
{
{
int result = a + b;
Console.WriteLine(\$"{a + b}");
}
if (operation == "multiply")
{
int result = a * b;
Console.WriteLine(\$"{a * b}");
}
if (operation == "subtract")
{
int result = a - b;
Console.WriteLine(\$"{a - b}");
}
if (operation == "divide")
{
int result = a / b;
Console.WriteLine(\$"{a / b}");
}
if (b != 0)
{
Console.WriteLine("Can't divide by zero!");
}
}
}
}
}

``````