Hello, I’m working on this task:
Change 2 math operations to get the correct result. Do not change anything but 2 math operations in this task. Oh, you might need to know that C# first appeared in the year 2000.
Here is my code:
public class KillTheDroid
{
public static void Main(string[] args)
{
int half = 1005 + 5;
int secondHalf = 500 / 2;
int answer = half + secondHalf;
Console.WriteLine("2000");
Console.WriteLine(answer);
int half = 1005 - 5;
int seconhalf = 500 + 5;
int answer = half - secondHalf;
}
}
Can anyone please help me to solve it?