So, found this link the other day:
Simple Programming Problems http://t.co/wdA3uiM8l9 I’m going to try and do all of these in Powershell, C#, Javascript and HP OO
— Adrian Farnell (@techfrontierUK) December 10, 2013
(Twitter post is me, I accept that, but follow the short link :D)
Challenge for today is to write a programme which outputs Hello World.
Javascript version (using Windows Scripting Host):
//runs in windows scripting host WScript.Echo("Hello World");
…the Powershell Version:
write-host "Hello World";
…the C# version:
class HelloCsharp { static void Main() { System.Console.WriteLine ("Hello from C#."); } }
and an image of the HP OO version: