free css templates
รายการสือการสอนของอาจารย์แต่ละท่านที่นำเสนอ

ชื่ออาจารย์ : นายศักดิ์ศรี เสนาลัย

สถานศึกษา : ข้าราชการเกษียน

แผนกวิชา : เทคโนโลยีสารสนเทศ

จังหวัด : มุกดาหาร



วิชาอาจารย์ นายศักดิ์ศรี เสนาลัย

ลำดับ

ชื่อวิชา

1- 1_BASIC_IOT_NETPIE_2020 17
2- 1_test_pid 8
3- 1_visual_foxpro 7
4- 1_การสร้างเว็บไซต์ด้วยMobirise 3
5- 1อบรมnodemcu_oit 8
6- 2อบรมnodemcu_oit 4
7- 3mqtt 5
8- A_WordPress 7
9- ARDUINO_BY_SAKSRI 6
10- basic_ROBOT 7
11- Car_Tracking 2
12- database 14
13- digital 30
14- esp32_Multi_Task 1
15- Firebase 4
16- internet_of_thing(IOT) 6
17- internet_of_thing(IOT2) 13
18- iot_nodemcu_wemos 3
19- JavaBasic 4
20- JSON 4
21- nodemcueps8266 7
22- php_mysql_and_NodeMCU_API 1
23- PYTHON 7
24- thunkable 5
25- VueJS 4
26- การเขียนโปรแกรมphp_mysql 29
27- การเขียนโปรแกรมคอมพิวเตอร์ 9
28- การเขียนโปรแกรมวินฟรอ์ม_database_dbf(visualfoxpro_by_saksri) 3
29- การเขียนโปรแกรมวินฟรอ์ม_database_mysql(visualfoxpro_by_saksri) 2
30- การเขียนโปรแกรมวินฟรอ์ม(visualfoxpro_by_saksri) 16
31- การเขียนโปรแกรมเว็บ2 22
32- การเรียนการสอนแบบออนไลน์ 2
33- ตัวอย่าง_PROJECT 5
34- ตัวอย่างการเขียนโปรแกรม 24
35- ปรับพื้นฐานการเขียนโปรแกรมด้วยภาษาphp 98
36- ระบบเขื่อข่ายคอมพิวเตอร์ 1
37- สร้างเว็บไซต์ด้วยPHPและฐานข้อมูลMySQL 5
38- สอนจาวา 30
39- สอนจาวา(java) 105
40- สอนจาวาGUI 23
41- สอนจาวาMysql 7
42- สอนทำเว็บ_PHP_Databases_Dreamweaver_Bootstrap 44
43- หุ่นยนต์เพื่ออุตสาหกรรม 13
44- หุ่นยนต์เพื่ออุตสาหกรรม2 3
45- หุ่นยนต์เพื่ออุตสาหกรรม3 5
46- หุ่นยนต์เพื่ออุตสาหกรรม4 2
47- เขียนเว็บด้วยHTML_CSS 2
48- เพลงคาราโอเกะ 52
49- โปรแกรมภาษาไพธอน 35
50- โรงงานอุตสาหกรรม 1

รายละเอียดd>การเขียนโปรแกรมคอมพิวเตอร์ > บทที่1


 

 

รายละเอียดd>การเขียนโปรแกรมคอมพิวเตอร์ > folowchart


folowchart program

รายละเอียดd>การเขียนโปรแกรมคอมพิวเตอร์ > flowchart_ppt


 flowchart ppt

รายละเอียดd>การเขียนโปรแกรมคอมพิวเตอร์ > เขียนโปรแกรมเชื่อมต่อฐานข้อมูลด้วยภาษา C# และ SQL


รายละเอียดd>การเขียนโปรแกรมคอมพิวเตอร์ > C# Tutorial 1:วิธีเชื่อมฐานข้อมูล SQL Server 2008 R2


รายละเอียดd>การเขียนโปรแกรมคอมพิวเตอร์ > ระบบหอพัก.mp4


รายละเอียดd>การเขียนโปรแกรมคอมพิวเตอร์ > Project ระบบหอพัก


รายละเอียดd>การเขียนโปรแกรมคอมพิวเตอร์ > #C ระบบบัญชีเงินฝาก


รายละเอียดd>การเขียนโปรแกรมคอมพิวเตอร์ > C Programming for Loop


 

C Programming for Loop

Loops are used in programming to repeat a specific block of code. After reading this tutorial, you will learn to create a for loop in C programming.

for loop in C programming

Loops are used in programming to repeat a specific block until some end condition is met. There are three loops in C programming:

  1. for loop
  2. while loop
  3. do...while loop

for Loop

 The syntax of for loop is:

for (initializationStatement; testExpression; updateStatement)
{
       // codes 
}

How for loop works?

The initialization statement is executed only once.

Then, the test expression is evaluated. If the test expression is false (0), for loop is terminated. But if the test expression is true (nonzero), codes inside the body of for loop is executed and the update expression is updated.

This process repeats until the test expression is false.

The for loop is commonly used when the number of iterations is known.

To learn more on test expression (when test expression is evaluated to nonzero (true) and 0 (false)), check out relational and logical operators.


for loop Flowchart

Flowchart of for loop in C programming language


Example: for loop

// Program to calculate the sum of first n natural numbers // Positive integers 1,2,3...n are known as natural numbers  #include <stdio.h> int main() {     int num, count, sum = 0;      printf("Enter a positive integer: ");     scanf("%d", &num);      // for loop terminates when n is less than count     for(count = 1; count <= num; ++count)     {         sum += count;     }      printf("Sum = %d", sum);      return 0; }