40 prices - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of 40 prices.php
- //Php code to genarate starting price point ; ready for easy copy paste---></br>
- <?php
- $userInput=1.125;
- $modifiedUserInput=$userInput+.01;
- $FivePips=5*10*.00001;
- //First for loop starts here
- for ( $i=0; $i<=39; $i++){
- $result=$modifiedUserInput-($FivePips*$i);
- $countRight=$i+1;
- echo "input double Price$countRight=$result; </br>";
- }//<--end first for loop
- ?>