// for<br>แสดงการทำซ้ำเพื่อพิมพ์ตัวเลขด้วย for
/* http://www.thaiall.com/tc */
#include <stdio.h>
#include <conio.h>
void main()
{
int i,j;
printf(
"Put integer :"
);
scanf (
"%d"
,&i);
"\n========\n"
for
(j=1;j <= i; j++)
"%d\n"
,j);
}
getch();