How to resolve the algorithm Count in octal step by step in the QB64 programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Count in octal step by step in the QB64 programming language
Table of Contents
Problem Statement
Produce a sequential count in octal, starting at zero, and using an increment of a one for each consecutive number. Each number should appear on a single line, and the program should count until terminated, or until the maximum value of the numeric type in use is reached.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Count in octal step by step in the QB64 programming language
Source code in the qb64 programming language
Dim As Integer iNum, Icount
Dim sMax As String
sMax = ""
Do While Val(sMax) <= 0 Or Val(sMax) > 32767
Input "Please type a value from 1 to 32767 ", sMax
Loop
iNum = Val(sMax)
For Icount = 0 To iNum Step 1
Print Oct$(Icount)
Next
End
REM also QBasic example runs under QB64
You may also check:How to resolve the algorithm Twelve statements step by step in the VBA programming language
You may also check:How to resolve the algorithm Middle three digits step by step in the Raku programming language
You may also check:How to resolve the algorithm Exponentiation operator step by step in the Arturo programming language
You may also check:How to resolve the algorithm Draw a pixel step by step in the Lambdatalk programming language
You may also check:How to resolve the algorithm Poker hand analyser step by step in the RPL programming language