Forum: Ruby How do I make this repeat itself?

Posted by Ryan M. (ryan_m20)
on 2013-01-19 01:55
So, I'm trying to make a simple calculator (I'm new, and I got help from
another forum), but I can't seem to find anything about how I'm supposed
to make the program repeat if you say yes at the end.

http://pastebin.com/FKTVGZ8c
Posted by Ryan Victory (Guest)
on 2013-01-19 02:39
(Received via mailing list)
Wrap the whole thing in a while loop (in this case, the while condition
is at the end, similar to do...while in other languages):
https://gist.github.com/4570115

Hopefully that helps,
Ryan Victory
Posted by Ryan M. (ryan_m20)
on 2013-01-19 06:40
Ryan Victory wrote in post #1092842:
> Wrap the whole thing in a while loop (in this case, the while condition
> is at the end, similar to do...while in other languages):
> https://gist.github.com/4570115
>
> Hopefully that helps,
> Ryan Victory

Thanks.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.