TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Jasen Betts
from: Bill Birrell
date: 2004-04-14 23:53:00
subject: Squares

> if speed is a issue, don't multiply either :)

 >  #include 
 >  #include 
 >  #include 
 >  int main(void)
 >  {   int n,s;
 >      const int top=(int)sqrt(INT_MAX)*2;
 >      for(n = -1,s=1; n < top; n+=2) printf("%d %d %d
 > \n",s+=n,n*n, top);
 >      return 0;
 >  }

    Don't understand, Jasen. You yourself are multiplying.

Best Wishes,
Bill.

---
* Origin: Escan BBS (2:25/200)
SEEN-BY: 633/267 270
@PATH: 25/200 108 252/110 250/501 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.