The code in C# in training is messed up it says
if ( enemy < 30 )
{
Console.WriteLine("HotDroid");
}
Of course the problem is String enemy = inputs[0];
you cannot explicitly convert String to integer.
The code in C# in training is messed up it says
if ( enemy < 30 )
{
Console.WriteLine("HotDroid");
}
Of course the problem is String enemy = inputs[0];
you cannot explicitly convert String to integer.
int count = int.Parse(Console.ReadLine());
for (int i = 0; i < count; i++)
{
inputs = Console.ReadLine().Split(' ');
String enemy = inputs[0];
int dist = int.Parse(inputs[1]);
}
Console.WriteLine("HotDroid");
This is the base code that I have when i put C#.I don’t see the “enemy < 30” part?