-
July 29th, 2012, 11:45 AM
#1
Int Loop
Hello,
Im Dalex and I have a following issue.
I want to make a program wich performs series of calculations (squaring, divisions, modulo divisions and others)
with initial value and when certain conditions are not met uses the result as initial value and continues until conditions are met.
I know this problem has some very simple solution but right now I dont see any.
Please help
-
July 29th, 2012, 12:05 PM
#2
Re: Int Loop
Originally Posted by Dalex
I know this problem has some very simple solution
Are you referring to recursion? Yes you can use recursion but also iteration (which sometimes needs to be complemented with a stack).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|