Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/User-input-Text/Nemerle/user-input-text.nemerle
Normal file
20
Task/User-input-Text/Nemerle/user-input-text.nemerle
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Console;
|
||||
|
||||
module Input
|
||||
{
|
||||
Main() : void
|
||||
{
|
||||
Write("Enter a string:");
|
||||
_ = ReadLine()
|
||||
|
||||
mutable entry = 0;
|
||||
mutable numeric = false;
|
||||
|
||||
do
|
||||
{
|
||||
Write("Enter 75000:");
|
||||
numeric = int.TryParse(ReadLine(), out entry);
|
||||
} while ((!numeric) || (entry != 75000))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue