RosettaCodeData/Task/Compile-time-calculation/FreeBASIC/compile-time-calculation.basic

9 lines
246 B
Plaintext

' FB 1.05.0 Win64
' Calculations can be done in a Const declaration at compile time
' provided only literals or other constant expressions are used
Const factorial As Integer = 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10
Print factorial ' 3628800
Sleep