Hello, I’m working on this task:
Change any invalid variable names to valid ones. Make other corrections needed so the program will compile (work) and output: “It is now 2113. We are having a war with machines. I actually don’t care about the current situation. I just want to go home.”
Here is my code:
namespace Naming {
public static class WantGoHome
{
public static void Main()
{
int year = 2113;
int enemy = "machines";
string situation = "situation";
int destination = home;
string result = $"it is now {year}. We are having a war with the {enemy}. I actually don't care about the current situation. I just want to go home"
Console.WriteLine(result);
}
}
}
Can anyone please help me to solve it?