Answers for "input in D"

0

input in D

//this is how you take input in D language
import std.stdio;

void main()
{
    writef("Enter your name: ");
    char[] name;
    name = readln();
    writef("Hello ", name);
}
Posted by: Guest on June-17-2020

Browse Popular Code Answers by Language