Int Loop
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Int Loop

  1. #1
    Join Date
    Jul 2012

    Int Loop

    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

  2. #2
    Join Date
    May 2009

    Re: Int Loop

    Quote Originally Posted by Dalex View Post
    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center