Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: oracle code to display sum

Re: oracle code to display sum

From: <hasta_l3_at_hotmail.com>
Date: 8 Nov 2006 00:12:07 -0800
Message-ID: <1162973527.614514.22470@m7g2000cwm.googlegroups.com>


sosa48_at_hotmail.com wrote :

> Can anyone please help in writing a loop or any type of code that would
> help me display the summation(one sum) for all numbers between 1 and
> 100, that are dividable by 5 or 7 without a remainder.
>
> Thanks in advance!

Well, assuming homework... You dont need a loop. Do you know of Gauss trick ?

  http://www.math.fau.edu/Richman/mla/triangle.htm

Can you adapt it for multiples of 5 (or 7) between 1 and 100 ?

(pretty off-topic. Sorry, guys) Received on Wed Nov 08 2006 - 02:12:07 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US