Computer Science Canada

loop program *urgent*

Author:  RottenPunk [ Sat Feb 14, 2004 11:57 pm ]
Post subject:  loop program *urgent*

hey, i just finished making a program for school and i want the program to ask the user at the end of the program if he/she wants to run the program over again. how do i get the program to loop from the beginning to the end if the user types yes to re-run?

Author:  Paul [ Sun Feb 15, 2004 12:18 am ]
Post subject: 

basically
var answer: string
code:

loop
program %<- insert program here.
put "Go again? (Y/N)"
get answer
if answer = "n" or answer = "N" then
exit
end if
end loop

Author:  RottenPunk [ Sun Feb 15, 2004 12:44 am ]
Post subject:  worked

thanks it worked


: