Jump to content

User input/Text: Difference between revisions

no edit summary
m (→‎{{header|Phix}}: added syntax colouring the hard way)
No edit summary
Line 476:
<lang IS-BASIC>100 INPUT PROMPT "Enter a number: ":NUM
110 INPUT PROMPT "Enter a string: ":ST$</lang>
 
==={{header|QB64}}===
The use of a Long int (l&) is required as the Int variable type is only 2 bytes and even if _UNSIGNED can only hold values up to 65535. If no value is entered for either input value, it will continue to hold whatever value it did previously.
<lang QB64>Input "Enter text and a number", s$, l&
Print s$
Print l&
</lang>
 
==={{header|Sinclair ZX81 BASIC}}===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.