Write a PHP script which displays all the numbers between 200 and 250 that are divisible by 4

  • برمجة بي اتش بي

Write a PHP script which displays all the numbers between 200 and 250 that are divisible by 4.

Note : Do not use any PHP control statement

الأجوبة

<?php
 echo implode(",",range(200,250,4))."\n";
?>

Sample Output:

200,204,208,212,216,220,224,228,232,236,240,244,248
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...