ANSI (American National Standards Institute)
C
1) loop statements)
for, while, do while
break
continue
decision statements...
loop statements)
for
for
for
for
for
for (expression ; expression ; expression statement
for (expression ; expression ; ex...
expression
expression
expression
statement(s)
{….}
for
for
for
/* for1.c */
#include<stdio.h> /*
include<conio.h> /*
void main(void) /*
int num; /*
clrscr( ); /*
for (num=1; num<=10...
for num num num++
num
num
for
printf num
printf
enter
do while
do while
while
do while
do while
do while
do{
statement(s);
} while (expression);
do while
แก้ไขงานคอม1
แก้ไขงานคอม1
แก้ไขงานคอม1
แก้ไขงานคอม1
Upcoming SlideShare
Loading in …5
×

แก้ไขงานคอม1

148 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
148
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

แก้ไขงานคอม1

  1. 1. ANSI (American National Standards Institute) C 1) loop statements) for, while, do while break continue decision statements) if, if else, else if ( nested if) switch goto statements) goto label
  2. 2. loop statements) for for for for for for (expression ; expression ; expression statement for (expression ; expression ; expression statement(s);}
  3. 3. expression expression expression statement(s) {….} for for
  4. 4. for /* for1.c */ #include<stdio.h> /* include<conio.h> /* void main(void) /* int num; /* clrscr( ); /* for (num=1; num<=10; num++) /* printf( "%3dn", num); /* end for */ /* printf("nnPress any key back to program..."); /* getch(); /*
  5. 5. for num num num++ num num for printf num printf enter
  6. 6. do while do while while do while do while do while do{ statement(s); } while (expression);
  7. 7. do while

×