+ 2
Get the following pseudo code, write a php program for it.
a. read x b. read y c. compute p=x*y d. compute s=x+y e. total = s^2 + p*(s-x)*(p+y) f. print total
8 odpowiedzi
+ 3
minemorz@gmail.com
+ 2
please send me your email to send you the assignment complete.
+ 1
you are right
my mean don't get input from user.
x and y must assigne to integer.
+ 1
yeah
+ 1
Alrighty then. Maybe you could answer my question on my profile please :|
+ 1
You can get input in PHP by using php://input. See this: http://php.net/manual/en/wrappers.php.php
0
So you want it to be like...
$x = (put a Number here)
$y = (put another number here)
$p = $x * $y;
$s = $x + $y;
$total = $s * $s + $p * $s - $x * $p + $y
echo $total;
- 1
By read you mean get the input from user? Can’t be done. You see, php is a back end server scripting language usually used in form handling. You can get input using it.
I