Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Re: Help Needed In the Code: Occurrence of Digits in a Number

    Not sure what you think would be inefficient.
    Get the code to work first. Then if there is a problem change it.

    The main inefficiency problem with the code is all the variables instead of using...
  2. Re: Help Needed In the Code: Occurrence of Digits in a Number

    How about: theDigit1, theDigit2, etc
    and countOfDigit1, countOfDigit2, etc

    Back to post#5 about this question: How do I omit the last 5 lines?
    What is there about those lines that the code can...
  3. Re: Help Needed In the Code: Occurrence of Digits in a Number

    Are you sure?

    A problem with understanding the code is the way the variables are named.
    What do the variables that begin with n hold? And those that begin with i?

    Variable names should...
  4. Re: Help Needed In the Code: Occurrence of Digits in a Number

    What needs to be compared so the code does not print those lines?
Results 1 to 4 of 4