Where? ' if a*b ' uses no external (Result-)variables. And inside PB... sorry, this does not interest me.
Search found 4 matches
- Fri Jun 22, 2007 7:07 am
- Forum: Coding Questions
- Topic: Math-Bug
- Replies: 3
- Views: 1426
- Tue Jun 19, 2007 3:57 pm
- Forum: Coding Questions
- Topic: Math-Bug
- Replies: 3
- Views: 1426
Math-Bug
A little Bug in the Mathlib. Run this prog and look.
OpenConsole()
For a=1 To 500000
For b=a+1 To 500000
If a*b=1000000
Nr+1
PrintN(Str(Nr)+": "+Str(a)+"*"+Str(b)+"="+Str(a*b))
EndIf
Next
Next
CloseConsole()
The Result is:
1: 2*500000=1000000
2: 4*250000=1000000
3: 5*200000=1000000
4 ...
OpenConsole()
For a=1 To 500000
For b=a+1 To 500000
If a*b=1000000
Nr+1
PrintN(Str(Nr)+": "+Str(a)+"*"+Str(b)+"="+Str(a*b))
EndIf
Next
Next
CloseConsole()
The Result is:
1: 2*500000=1000000
2: 4*250000=1000000
3: 5*200000=1000000
4 ...
- Tue Apr 20, 2004 8:56 am
- Forum: Feature Requests and Wishlists
- Topic: No "DataSection/EndDataSection" and a request
- Replies: 12
- Views: 2908
No "DataSection/EndDataSection" and a request
With each PureBasic-Update some superfluous orders disappear. When
does "DataSection/EndDataSection" disappear finally ? The Statement
"Data" should suffice however to the absolute identification of data !
And to it still a request:
In my projects i note them used PB-Version and hold them ready ...
does "DataSection/EndDataSection" disappear finally ? The Statement
"Data" should suffice however to the absolute identification of data !
And to it still a request:
In my projects i note them used PB-Version and hold them ready ...
- Thu Jan 08, 2004 8:49 am
- Forum: Feature Requests and Wishlists
- Topic: Wishlist for PureBasic v4.0
- Replies: 232
- Views: 70208