dcoder wrote:
> Hello. Here's a short program that works in a dos window:
>
> import std.stdio;
>
> void main() {
>
> writef( "What is your name?");
>
> string name = readln();
> writefln( "Hello " ~ name);
> }
>
> The program prints a prompt without a newline and the user enters a nam
Hello. Here's a short program that works in a dos window:
import std.stdio;
void main() {
writef( "What is your name?");
string name = readln();
writefln( "Hello " ~ name);
}
The program prints a prompt without a newline and the user enters a name and a
greeting is printed.
The same pr