Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- $h = $_POST["name1"];
- $M = $_POST["name2"];
- $t = 1;
- while ($t<$M) {
- 0<=$h and $h<=100;
- 0<$M and $M<240;
- $A = (-6 * pow($t, 4)) + ($h * pow($t, 3)) + (2 * pow($t, 2)) + $t;
- $t++;
- }
- echo $A;
- echo "<br/>";
- echo $t;
- echo "<br/>";
- if ($A <= 0) {
- break;
- }
- echo "The balloon first touches the ground at $t hour";
- if ($t > $M) {
- echo "The balloon does not touch the ground during the given time";
- }
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment