PHP practice
Loop and if
Numbers 1–6 are printed directly. Values above 6 show the conditional message.
- 1
- 2
- 3
- 4
- 5
- 6
- r is greater than 6 (r = 7)
- r is greater than 6 (r = 8)
- r is greater than 6 (r = 9)
- r is greater than 6 (r = 10)
BABA GURU NANAKUNIVERSITY · NANKANA SAHIBPHP practice
Numbers 1–6 are printed directly. Values above 6 show the conditional message.