For Loop
พรทิพา บ่างสุวรรณ์ 630710331
for loop คือ
โครงสร้าง for loop ใน PHP
for (expression1, expression2, expression3) {
// code block
}Example เปรียบเทียบโค้ดของแต่ละภาษา
<?php
for ($x = 0; $x <= 10; $x++) {
echo "Number is: $x <br>";
}
?>for number in range(0, 11):
print("Number is:",number)#include <stdio.h>
int main()
{
int i = 0;
for (i = 0; i <= 10; i++)
{
printf("%d Number is\n", i);
}
} class Demo{
public static void main(String[] args){
for(int i = 0; i <= 10; i++){
System.out.println("Number is: " + i);
}
}
}อธิบายการทำงานของ For Loop แต่ละภาษา
สรุปความแตกต่างแต่ละภาษา
จุดเด่นจุดด้อยของแต่ละภาษา
ภาษา
จุดเด่น
จุดด้อย
Presentation
Video Clip
Reference
Last updated