Question: Find the output of the given PHP program for each of the following inputs. [2.5 marks) (WRITE THE QUESTION NUMBER ALONG WITH YOUR ANSWERS/OUTPUT IN

 Find the output of the given PHP program for each of

the following inputs. [2.5 marks) (WRITE THE QUESTION NUMBER ALONG WITH YOUR

Find the output of the given PHP program for each of the following inputs. [2.5 marks) (WRITE THE QUESTION NUMBER ALONG WITH YOUR ANSWERS/OUTPUT IN YOUR ANSWER SHEET) Qno User Input (number) On1 8 5

Enter the number:

=1;$i-=2) { echo "$i". } ?> Qn3 3 Qn4 6 Qn5 7 Fill in the blanks / complete the PHP program to get the output as shown below. [2.5 marks] (WRITE THE LINE NUMBER ALONG WITH YOUR ANSWER CODE IN YOUR ANSWER SH 11 1 Calculate Force "; 3 echo = " force(5,3)." "; 4 echo "Force, if Mis 12 & Ais 10 = " force(12,10)" "; 5 echo "Force, if M is 30 & A is 15 = " " "; 6 function 7 { 8 $f = $m * $a; 9 return 10 } 11 ?> Output: Calculate Force Force, if M is 5 & A is 3 = 15 Force, if M is 12 & A is 10 = 120 Force, if M is 30 & A is 15 = 450

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!