Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!ncoast!catfood From: catfood@NCoast.ORG (Mark W. Schumann) Newsgroups: comp.lang.c Subject: Re: # to the nth power Message-ID: <1990Nov6.001447.15319@NCoast.ORG> Date: 6 Nov 90 00:14:47 GMT References: <90305.005050CJH101@psuvm.psu.edu> <5240@ima.ima.isc.com> Organization: North Coast Public Access *NIX, Cleveland, OH Lines: 16 In article <5240@ima.ima.isc.com> karl@ima.isc.com (Karl Heuer) writes: > catfood@NCoast.ORG (Mark W. Schumann) writes: >> int result = 1; >> for (i = exponent; i > 1; i--) result *= root; >Fencepost error. Should be "i > 0". Uh, yes, that's right. Sorry, NetPeople. -- ============================================================ Mark W. Schumann 3111 Mapledale Avenue, Cleveland 44109 USA Domain: catfood@ncoast.org UUCP: ...!mailrus!usenet.ins.cwru.edu!ncoast!catfood ============================================================