Quote Originally Posted by John View Post
There is so much I don't know where to get started...

for example:
PHP Code:
while(uk+1<=ans) {
      
uk++;
      
solve uk;
      
sleep(0.05);
      if (
ans/uk=thing) { //replace the / with the mathematical symbol you require.
         
echo("The answer is" SPC uk);
      }
    } 
What's the point of having sleep() and what is solve = * used for?

Plus, in the java code, why did you use float? You're adding an integer on each, this is not the solution, preferably it's better if you use a mathematical equation and not loop through numbers... What if an answer was decimal? Code won't help you here.
I used int at first, but as an int is a whole number, it's incapable of doing decimals, but float can. I remember using solve for something, but I removed it. Sleep is so RC doesn't freeze. I'm sorry that it isn't perfect, as this is my first partially-logical script. And Noofboy, it can be used anywhere ex. k= "hi" SPC "bye";