Page 925 - เตรียมสอบครูผู้ช่วยคอมพิวเตอร์_compressed
P. 925

่
               5. จงแสดงผลการรันของโปรแกรมโครงสร้างควบคุมแบบทําซํ้าด้วยคําสั่ง for ตอไปน  ี้
                     #include <stdio.h>

                     int row, collumn;

                     main(){
                             for(row=1;row<=4;row++){
                               for(collumn=1;collumn<=4;collumn++)

                                     printf("\t %d%d ", row, collumn);

                               printf("\n");
                             }
                     }

                       แนวตอบ

                                     11     12     13      14
                                     21     22     23      24
                                     31     32     33      34

                                     41     42     43      44































                                                                                                         5
   920   921   922   923   924   925   926   927   928   929   930