Ask for a name, say “Hello, <name>”
Here we go:
Javascript
var stdIn = WScript.StdIn var stdOut = WScript.StdOut stdOut.WriteLine("Name?"); while (!stdIn.AtEndOfStream) { var str = stdIn.ReadLine() stdOut.WriteLine("Hello " + str); }
Powershell
$name = read-host "Name please?" write-host "Hello " $name
C#
using System; class HelloCsharp { static void Main() { string Name; Console.WriteLine("Name?"); Name = Console.ReadLine (); Console.WriteLine ("Hello from C# " + Name); } }
OO