Write a PHP script using a for loop to add all the integers between 0 and 20 and display the sum
belongs to collection: Loop PHP programs with examples
All Answers
total answers (1)
belongs to collection: Loop PHP programs with examples
total answers (1)
PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I have used WampServer 2.2 for following example.
Result:
The sum of the numbers 0 to 20 is 210
need an explanation for this answer? contact us directly to get an explanation for this answer