Upcoming SlideShare
×

# งานนำเสนอ อาจารย์ลาวัลย์

285 views

Published on

Published in: Technology, Education
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
285
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
1
0
Likes
0
Embeds 0
No embeds

No notes for slide

### งานนำเสนอ อาจารย์ลาวัลย์

1. 1. 1.2.3.4.5.
2. 2. 5
3. 3. 2
4. 4.  #include<stdio.h> #include<conio.h> void main(void){ int k,i; clrscr(); printf("n number "); scanf("%d",&k); for (i=1; i<=12; i++) printf("%d x %d = %dn",k,i,i*k); printf("nnPress any key back to program..."); getch();}
5. 5.  7 printf( ) Enter number 8 scanf( ) k 9 for (i = 1; i <= 12; i++) i 1 i <= 12 10 for 11 10 printf( ) k, i i*k i 11 printf( )
6. 6. 3
7. 7.  #include<stdio.h> #include<conio.h> void main(void){ int k,i; clrscr(); printf("n number "); scanf("%d",&k); for (i=1; i<=12; i++) printf("%d x %d = %dn",k,i,i*k); printf("nnPress any key back to program..."); getch();}
8. 8.  7 printf( ) Enter number 8 scanf( ) k 9 for (i = 1; i <= 12; i++) i 1 i <= 12 10 for 11 10 printf( ) k, i i *k i 11 printf( )
9. 9. 2 3
10. 10.  #include<stdio.h> #include<conio.h> void main(void) { int k,i; clrscr(); printf("n number "); scanf("%d",&k); for (i=1; i<=12; i++) printf("%d x %d = %dn",k,i,i*k); printf("n number "); scanf("%d",&k); for (i=1; i<=12; i++) printf("%d x %d = %dn",k,i,i*k); printf("nnPress any key back to program..."); getch(); }
11. 11.  7 printf( ) Enter number 8 scanf( ) k 9 for (i = 1; i <= 12; i++) i 1 i <= 12 10 for 11 10 printf( ) k, i i *k i 11 printf( )
12. 12. forfor
13. 13.  #include <stdio.h> void main() { int i, j; for (i = 0; i < 2; i++) { for (j = 0; j < 5; j++) { printf("Loven"); } }}
14. 14.  Love. Love. “n” printf
15. 15. forwhile
16. 16.  #include <stdio.h> void main() { int i, j; for (i = 0; i < 2; i++) { j = 0; while (j < 4) { printf("LOVE."); j++; } } }
17. 17.  Love. “n” printf
18. 18. whilefor
19. 19.  #include <stdio.h> void main() { int i, j; i = 0; while (i < 6) { for (j = 0; j < 3; j++) printf("LOVE."); i++; }}
20. 20.  Love. “n” printf
21. 21. whilewhile
22. 22.  #include <stdio.h> void main() { int i=0, j=0; while (i < 2) { while (j < 8) { printf("LOVE."); j++; } i++; }}
23. 23.  Hello. “n” printf