Right you are almost there!! lets just look at the function you are talking about
public bool TrueOrFalse()
{
int four = 4;
int five = 5;
bool answer;
Console.WriteLine("4 * 5 should equal: {0}", four * five);
four*five
return answer;
}
It will always return false as it stands, because you are declaring answer but not setting it, then returning it. By default it will be set to false. All you need to do is set it, so something like this (this is done freehand so may not compile)
public bool TrueOrFalse()
{
int four = 4;
int five = 5;
bool answer = false; // always good practice to set the default :)
Console.WriteLine("4 * 5 should equal: {0}", four * five);
if((four*five) == 20)
{
answer=true;
}
//no need for an else as answer is preset to false at the declaration
return answer;
}
Hope that helps and its what you wanted