Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 ANSWERS/OUTPUT IN YOUR ANSWER SHEET) Qno User Input (number) On1 8 5 =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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started