|
|
Warp wrote:
> ---------------------
> Hey, I just wrote a C program which prints numbers from 1 to 100, with
> 10 numbers at each line:
>
> #include <stdio.h>
>
> int main(void)
> {
> int i;
> for(i = 1; i <= 100; ++i)
> {
> printf("%i ", i);
> if(i % 10 == 0) printf("\n");
> }
> return 0;
> }
> ---------------------
Ohh, wow! That is just sooo cool. and the use of the modulus operator!
Brillant!
:D
Post a reply to this message
|
|