
June 9th, 2002, 11:32 AM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
There's more than one way to do it!
Code:
while (1) {
printf("Do you want to run this again? (Y/N) ");
ch = getch();
if (ch == 'N' || ch == 'n')
break;
else if (ch == 'Y' || ch == 'y') {
.... your code comes here
}
else
printf ("Dammit! I said type Y or N\n");
}
|