Console.title = "marriage Example";
BOOL A, B, C;
String y;
Console.WriteLine ("There is a room?" (y/n) ");
y = Console.ReadLine ();
A = Convert.toboolean (y = = "Y" | | y = "y")? 1:0);
Console.WriteLine ("Got a Car?") (y/n) ");
y = Console.ReadLine ();
b = Convert.toboolean (y = = "Y" | | y = "y")? 1:0);
Console.WriteLine ("Rich?") (y/n) ");
y = Console.ReadLine ();
c = Convert.toboolean (y = = "Y" | | y = "y")? 1:0);
if (a&b&c)
{
Console.WriteLine ("Can continue to understand");
}
else if (a&b)
{
Console.WriteLine ("Wait Till You have Money");
}
else if (a&c)
{
Console.WriteLine ("Wait till you have a car");
}
else if (b&c)
{
Console.WriteLine ("Wait for your room to say it");
}
else if (a)
{
Console.WriteLine ("When you have a car to have money to say it Again");
}
else if (b)
{
Console.WriteLine ("When you have a room to have money to say it Again");
}
else if (c)
{
Console.WriteLine ("Wait till you have a car in your room");
}
Else
{
Console.WriteLine ("When you have a car and you have money to talk about it");
}
C # Marriage Example