Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
6
Task/Twos-complement/FreeBASIC/twos-complement-1.basic
Normal file
6
Task/Twos-complement/FreeBASIC/twos-complement-1.basic
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
Dim As Integer d1 = 2147483648, d2 = 2147483646
|
||||
Dim As Integer b(1 To ...) = {-d1, -d1+1, -2, -1, 0, 1, 2, d1-2, d1-1}
|
||||
For i As Integer = 1 To Ubound(b)
|
||||
Print b(i); " -> "; -b(i)
|
||||
Next i
|
||||
Sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue