fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int i = 0; // ค่าเริ่มต้นของ i
  5. int j = 0; // ค่าเริ่มต้นของ j
  6.  
  7. for (i = 4; i > 1; i -= 2) {
  8. printf("student #%d\n", i); // แสดงค่า student #i
  9. }
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
student #4
student #2