Click here to Skip to main content
15,917,176 members

Comments by Member 12141172 (Top 12 by date)

Member 12141172 22-Nov-15 21:16pm View    
thank you!!
YES, need to add the Console.ReadLine(); (bad programming form)
Member 12141172 22-Nov-15 20:17pm View    
ok.
Member 12141172 22-Nov-15 20:16pm View    
Even like this, I get no output (I know the Boolean values should always be true).

static void Main(string[] args)
{
// declare boolean values
bool icyRain = true;
bool tornadoWarning = true;

if ((icyRain) & (tornadoWarning))
{
Console.WriteLine();
}
else if ((!icyRain) && (!tornadoWarning))
{
Console.WriteLine("Let's go outside!");
}
}
}
}
Member 12141172 22-Nov-15 20:11pm View    
I tried adding an else statement and it also didn't work.
Member 12141172 22-Nov-15 19:49pm View    
Thank you for your response! I am still not sure what the problem is:
I tried it both with & and &&, and the output is still blank.
Yes, I want both values to be false.