im doing positive or negative try it out on page 65
so from my understanding i got this…..
Console.WriteLine("Enter First Number: ");
string userinput = Console.ReadLine();
int numone = Convert.ToInt32(userinput);
Console.WriteLine("Enter Second Number: ");
string userinputtwo = Console.ReadLine();
int numtwo = Convert.ToInt32(userinputtwo);
if (numone >= -1 && numtwo >= -1 || numone >= +1 && numtwo >= +1)
{
Console.WriteLine("positive");
}
else if (numone >= +1 && numtwo >= -1 || numone >= -1 && numtwo >= +1)
{
Console.WriteLine("negative");
}
else
{
Console.WriteLine("input a number");
}
Console.ReadKey();
and you wrote something different.
i dont remember learning about these brackets in this…. { }
if (number1 > 0) { number1Positive = true; }
else { number1Positive = false; }
if (number2 > 0) { number2Positive = true; }
else { number2Positive = false; }