Seuraavassa on esimerkki "for"-tyylistä:
``` c
int i, n;
varten (i =1, n =10; i <=n; i++)
printf("%2d", i);
```