How to resolve the algorithm User input/Text step by step in the PureBasic programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm User input/Text step by step in the PureBasic programming language
Table of Contents
Problem Statement
Input a string and the integer 75000 from the text console. See also: User input/Graphical
Let's start with the solution:
Step by Step solution about How to resolve the algorithm User input/Text step by step in the PureBasic programming language
Source code in the purebasic programming language
If OpenConsole()
; Declare a string and a integer to be used
Define txt.s, num.i
Print("Enter a string: ")
txt=Input()
Repeat
Print("Enter the number 75000: ")
num=Val(Input()) ; Converts the Input to a Value with Val()
Until num=75000
; Check that the user really gives us 75000!
Print("You made it!")
Delay(3000): CloseConsole()
EndIf
You may also check:How to resolve the algorithm Amicable pairs step by step in the Scala programming language
You may also check:How to resolve the algorithm Caesar cipher step by step in the True BASIC programming language
You may also check:How to resolve the algorithm IBAN step by step in the SNOBOL4 programming language
You may also check:How to resolve the algorithm Gray code step by step in the 8051 Assembly programming language
You may also check:How to resolve the algorithm Continued fraction/Arithmetic/G(matrix ng, continued fraction n) step by step in the Standard ML programming language