POV-Ray : Newsgroups : povray.off-topic : My first nomogram : Re: My first nomogram Server Time
7 Sep 2024 17:17:08 EDT (-0400)
  Re: My first nomogram  
From: Mike Raiford
Date: 30 Jun 2008 09:26:17
Message: <4868def9$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.