Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/User-input-Text/Ceylon/user-input-text.ceylon
Normal file
12
Task/User-input-Text/Ceylon/user-input-text.ceylon
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
shared void run() {
|
||||
print("enter any text here");
|
||||
value text = process.readLine();
|
||||
print(text);
|
||||
print("enter the number 75000 here");
|
||||
if (is Integer number = Integer.parse(process.readLine() else "")) {
|
||||
print("``number == 75k then number else "close enough"``");
|
||||
}
|
||||
else {
|
||||
print("That was not a number per se.");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue