How to resolve the algorithm User input/Text step by step in the Amazing Hopper programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm User input/Text step by step in the Amazing Hopper 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 Amazing Hopper programming language

Source code in the amazing programming language

#include 

#import lib/input.bas.lib
#include include/flow-input.h

DEF-MAIN(argv,argc)
   CLR-SCR
   MSET( número, cadena )
   LOCATE(2,2), PRNL( "Input an string : "), LOC-COL(20), LET( cadena := READ-STRING( cadena ) )
   LOCATE(3,2), PRNL( "Input an integer: "), LOC-COL(20), LET( número := INT( VAL(READ-NUMBER( número )) ) )
   LOCATE(5,2), PRNL( cadena, "\n ",número ) 
END

  

You may also check:How to resolve the algorithm File input/output step by step in the Elixir programming language
You may also check:How to resolve the algorithm Short-circuit evaluation step by step in the Sidef programming language
You may also check:How to resolve the algorithm Sieve of Eratosthenes step by step in the Lingo programming language
You may also check:How to resolve the algorithm Multiple distinct objects step by step in the Nim programming language
You may also check:How to resolve the algorithm Trigonometric functions step by step in the Ring programming language