Train of thought: 1, if have room, can talk
2, if there is no room, ask the second condition of money, if there is, can talk
3, if no room without money, then ask the third condition has the ability, if there is, can talk
4, if the above three conditions are not, then bye
Console.WriteLine ("do you have any money? "); stringQ =Console.ReadLine (); if(q = ="have a") {Console.WriteLine ("local tyrants, let's be friends! "); } Else if(q = ="No") {Console.WriteLine ("do you have a house? "); stringf =Console.ReadLine (); if(f = ="have a") {Console.WriteLine ("we can talk."); } Else if(f = ="No") {Console.WriteLine ("do you have a car? "); stringc =Console.ReadLine (); if(c = ="have a") {Console.WriteLine ("Please, I'll go for a ride."); } Else if(c = ="No") {Console.WriteLine ("do you have the power? "); stringn =Console.ReadLine (); if(n = ="have a") {Console.WriteLine ("we can have a relationship, try ."); } Else if(n = ="No") {Console.WriteLine ("Roll Duzi! "); } Else{Console.WriteLine ("We're not on a channel! "); } } Else{Console.WriteLine ("Please speak! "); } } Else{Console.WriteLine ("Please speak! "); } } Else{Console.WriteLine ("Please speak! "); }
Is there a room in the IF statement? You got Money? Are you capable?