+ 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

12th Apr 2018, 1:10 AM
m azim
m azim - avatar
8 Answers
+ 3
minemorz@gmail.com
12th Apr 2018, 1:33 AM
Someone Else
Someone Else - avatar
+ 2
please send me your email to send you the assignment complete.
12th Apr 2018, 1:33 AM
m azim
m azim - avatar
+ 1
you are right my mean don't get input from user. x and y must assigne to integer.
12th Apr 2018, 1:22 AM
m azim
m azim - avatar
+ 1
yeah
12th Apr 2018, 1:27 AM
m azim
m azim - avatar
+ 1
Alrighty then. Maybe you could answer my question on my profile please :|
12th Apr 2018, 1:28 AM
Someone Else
Someone Else - avatar
+ 1
You can get input in PHP by using php://input. See this: http://php.net/manual/en/wrappers.php.php
12th Apr 2018, 3:08 AM
$machitgarha
$machitgarha - avatar
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;
12th Apr 2018, 1:25 AM
Someone Else
Someone Else - avatar
- 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
12th Apr 2018, 1:18 AM
Someone Else
Someone Else - avatar