Computer Science, asked by abhiv6759, 5 months ago

Write a program in PHP to print even numbers from 1 ​

Answers

Answered by ritu0773
0

Answer:

php for ($i=1; $i<=100; $i++) { if($i%2==0) { @$even=$even+$i; } else { @$odd=$odd+$i; } } echo "Sum of even numbers=".

Similar questions