PHP output text, constant definition, if statement

Note:

1. Print
Hello: red font No. 1 The
weather is good today: blue, lined font No. 3
Let’s go mountain climbing: black font No. 4 underlined The
Insert picture description here
effect is shown in the figure:
Insert picture description here
2. Ask for one The area of ​​the trapezoid with the upper base being 5, the lower base being 10, and the height being 8:
Insert picture description here
Effect:
Insert picture description here
3. Knowing that the original length of the spring is 20 cm, the length of the spring is increased by 0.2 cm for every 1000 grams, and the weight of the spring is 22. the weight
Insert picture description here
4 is known, the propagation speed of 360 seconds per meter, in the high mountains cry heard time of 4 seconds, the seek distance back and forth, with constant defines --define ( "S", "360");
Insert picture description here
5. the grading reward
if If the score is 100, output "Reward a BMW"; if the score is between (80, 99], output "Reward an iphone xs max"; if the score is between (60, 80], output "Reward an iPad" "; If the score is in another range, output "nothing".
Insert picture description here
6. Knowing that 2020.01.01 is Monday, use an if statement to find the day of the week on March 11:
Insert picture description here
Output effect:
Insert picture description here

Guess you like

Origin blog.csdn.net/m0_46015143/article/details/104844906