Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
10
Task/Twos-complement/Gambas/twos-complement.gambas
Normal file
10
Task/Twos-complement/Gambas/twos-complement.gambas
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Public d As Integer = 1234567
|
||||
Public b As Integer[] = [-d, -d + 1, -2, -1, 0, 1, 2, d - 2, d - 1]
|
||||
|
||||
Public Sub Main()
|
||||
|
||||
For i As Integer = 0 To b.Count - 1
|
||||
Print b[i]; " -> "; -b[i] ' * -1
|
||||
Next
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue