Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/User-input-Text/J/user-input-text-1.j
Normal file
3
Task/User-input-Text/J/user-input-text-1.j
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
require 'misc' NB. load system script
|
||||
prompt 'Enter string: '
|
||||
0".prompt 'Enter an integer: '
|
||||
14
Task/User-input-Text/J/user-input-text-2.j
Normal file
14
Task/User-input-Text/J/user-input-text-2.j
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
prompt 'Enter string: ' NB. output string to session
|
||||
Enter string: Hello World
|
||||
Hello World
|
||||
0".prompt 'Enter an integer: ' NB. output integer to session
|
||||
Enter an integer: 75000
|
||||
75000
|
||||
mystring=: prompt 'Enter string: ' NB. store string as noun
|
||||
Enter string: Hello Rosetta Code
|
||||
myinteger=: 0".prompt 'Enter an integer: ' NB. store integer as noun
|
||||
Enter an integer: 75000
|
||||
mystring;myinteger NB. show contents of nouns
|
||||
┌──────────────────┬─────┐
|
||||
│Hello Rosetta Code│75000│
|
||||
└──────────────────┴─────┘
|
||||
Loading…
Add table
Add a link
Reference in a new issue