Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
20
Task/Literals-Integer/FreeBASIC/literals-integer.freebasic
Normal file
20
Task/Literals-Integer/FreeBASIC/literals-integer.freebasic
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
' The following all print 64 to the console
|
||||
|
||||
' integer literals of unspecified type - actual type is inferred from size or context (8, 16, 32 or 64 bit signed/unsigned)
|
||||
Print 64 '' Decimal literal
|
||||
Print &H40 '' Hexadecimal literal
|
||||
Print &O100 '' Octal Literal
|
||||
Print &B1000000 '' Binary literal
|
||||
|
||||
' integer literals of specific types
|
||||
' Integer type is 4 bytes on 32 bit and 8 bytes on 64 bit platform
|
||||
Print 64% '' Decimal signed 4/8 byte integer (Integer)
|
||||
Print 64L '' Decimal signed 4 byte integer (Long)
|
||||
Print 64& '' Decimal signed 4 byte integer (Long) - alternative suffix
|
||||
Print 64LL '' Decimal unsigned 4 byte integer (ULong)
|
||||
Print 64LL '' Decimal signed 8 byte integer (LongInt)
|
||||
Print 64ULL '' Decimal unsigned 8 byte integer (ULongInt)
|
||||
|
||||
Sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue