How to resolve the algorithm Enumerations step by step in the FutureBasic programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Enumerations step by step in the FutureBasic programming language
Table of Contents
Problem Statement
Create an enumeration of constants with and without explicit values.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Enumerations step by step in the FutureBasic programming language
Source code in the futurebasic programming language
window 1, @"Enumerations", (0,0,480,270)
begin enum 1
_apple
_banana
_cherry
end enum
begin enum
_appleExplicit = 10
_bananaExplicit = 15
_cherryExplicit = 30
end enum
print "_apple = "; _apple
print "_banana = "; _banana
print "_cherry = "; _cherry
print
print "_appleExplicit = "; _appleExplicit
print "_bananaExplicit = "; _bananaExplicit
print "_cherryExplicit = "; _cherryExplicit
HandleEvents
You may also check:How to resolve the algorithm XML/Input step by step in the Scala programming language
You may also check:How to resolve the algorithm Arithmetic/Rational step by step in the Racket programming language
You may also check:How to resolve the algorithm FizzBuzz step by step in the Liberty BASIC programming language
You may also check:How to resolve the algorithm Multisplit step by step in the BBC BASIC programming language
You may also check:How to resolve the algorithm Identity matrix step by step in the Mathematica / Wolfram Language programming language