Subject | Re: Problem with quotes |
---|---|
Author | Ali Gökçen |
Post date | 2005-10-11T07:52:46Z |
> = Cast(((n * (n+1)) / 2) as Integer)Yup, it makes you with a little optimization.
>
> ( Does that make me a real programmer ;-) )
(if you cancel the casting :P )
(n*n+n)/2, no cast, no paranthesis soup. ;)
Actually this was the light version of my ask.
The original is: how can you put sum of numbers from n to m.
(to the real-real-programmers)
If they were be float numbers you can't sum, there is infinity
numbers
between them.
So, they are integers of course.
ops!
Let's go!, goo! Escape! Helen comming to this side!
Ali