Version 1 (modified by Andrej08, 14 years ago) |
---|
Get input from the user (uses readln)
Part of TutorialFundamentals
Description
Shows how you can ask the user for input during runtime.
Example
import std.stdio; void main() { writefln("What is your name?"); string name; stdin.readln(name); writefln("Hello %s", name); }