Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Re: thought i had it, then i sneezed and lost it (randomly generated numbers)

    How does that change my answer? If the value was 5 or 27 the same logic works. 5 would shift by 1 position, 27 by two.
  2. Re: thought i had it, then i sneezed and lost it (randomly generated numbers)

    Look at the resultant value that you want given 700.
    How would you get that result if you did it in a calculator?
    Shift the 700 left by 3 positions and add 700.
    To shift a decimal number left you...
  3. Re: thought i had it, then i sneezed and lost it (randomly generated numbers)

    Ok, I'll ask you line by line to explain what you want your code to do.
    What is this line supposed to do?
    int x = "random"+"random";

    Here are two choices that will allow the above to compile:...
  4. Re: thought i had it, then i sneezed and lost it (randomly generated numbers)

    I will. Please post them with an explanation as I have requested.


    Looking at the comments in the code I have no idea what the code is supposed to do. How can I suggest how to make the code work...
  5. Re: thought i had it, then i sneezed and lost it (randomly generated numbers)

    Ok, I see the code. What next?
    For example: show its output, describe what is wrong with it and show what you want it to be.
  6. Re: thought i had it, then i sneezed and lost it (randomly generated numbers)

    No. math ops require numbers

    You'll have to post your code for any help on the rest. I have no idea what you are trying to do.
  7. Re: thought i had it, then i sneezed and lost it (randomly generated numbers)

    The numbers you are talking about are in two different formats.
    One is as a numerical value held in a variable like an int: 117.
    The other format is as a String: "117"
    The + operator works...
Results 1 to 7 of 7