Answer:
#include <iostream>
using namespace std;
void PrintPopcornTime (int bagOunces){
if (bagOunces < 2){
cout << "Too small"<<endl;
}
else if (bagOunces > 10){
cout << "Too large"<<endl;
}
else{
cout << bagOunces*6 <<" seconds"<<endl;
}
}
int main(){
PrintPopcornTime(7);
return 0;
}
Explanation:
Create a function called PrintPopcornTime that takes one parameter, bagOunces
Check the bagOunces using if-else structure. If it is smaller than 2, print "Too small". If it is greater than 10, print "Too large". Otherwise, calculate and print 6*bagOunces followed by " seconds".
Call the function in the main function with parameter 7. Since 7 is not smaller than 2 or not greater than 10, "42 seconds" will be printed.
It think it's a Nested List.
Im so sorry if this is wrong
Answer:
?>
Explanation:
The statement terminator for PHP language is ?>
PHP i.e. Hypertext Preprocessor.
It is widely used open source general purpose scripting language that is especially suited for web development and can be embedded into HTML.
PHP opening and closing tags are <? and ?> respectively.
hope you got the point any question can be asked in comments will be answered duly.