yes / no

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
mon.king
Posts: 4
Joined: Thu Nov 20, 2003 1:22 pm

yes / no

Post by mon.king »

i'm trying to get a program to ask a question that requires a yes or no answer, and then loops until the answer is no. i have managed to get it to loop but the loop works no matter what the user types in. is anyone able to help.
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

I suspect many people on this forum can help. I would suggest as the first statement inside your loop you display what answer they have input and compare that to your termination value.
I choose to fight with a sack of angry cats.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

It is hard to help without any of your code.

But apart from that - this is not really a programming forum...
Post Reply