BABA GURU NANAK UNIVERSITY, NANKANA SAHIB Student project · Abdulaziz
BGNU logoBABA GURU NANAKUNIVERSITY · NANKANA SAHIB

PHP practice

Loop and if

Numbers 1–6 are printed directly. Values above 6 show the conditional message.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. r is greater than 6 (r = 7)
  8. r is greater than 6 (r = 8)
  9. r is greater than 6 (r = 9)
  10. r is greater than 6 (r = 10)
Back to learning