Write a program in PHP to print even numbers from 1
Answers
Answered by
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