RosettaCodeData/Task/User-input-Text/Ceylon/user-input-text.ceylon
2016-12-05 23:44:36 +01:00

8 lines
267 B
Ceylon

shared void run() {
print("enter any text here");
value text = process.readLine();
print(text);
print("enter the number 7500 here");
value number = parseInteger(process.readLine() else "") else -1;
print("``number == 7500 then number else "close enough"``");
}