var x = "Hello!"
var y = "World!"
var hello = x+y
writeln hello
var test_num = 5
writeln "test number: {0}", test_num
// THIS IS A COMMENT
/* another damn comment
of multiple
lines */
while (true)
write "Enter Name:"
var name = readln
if (name == "me")
writeln "THIS IS SO AWESOME!!!"
writeln "I am me!"
end
else if(name == "exit")
writeln "Exiting..."
exit 0
end
else
writeln "NOO!!! :("
write "I am not 'me'..."
end
end
using System;
/* AUTOGENERATED BY HACK COMPILER V 0.1 */
namespace Program
{
public class MainApp
{
public static void Main(string[] args)
{
var x = "Hello!";
var y = "World!";
var hello = x+y;
global::System.Console.WriteLine( hello);
var test_num = 5;
global::System.Console.WriteLine( "test number: {0}", test_num);
// THIS IS A COMMENT
/* another damn comment
of multiple
lines */
while (true){
global::System.Console.Write( "Enter Name:");
var name = global::System.Console.ReadLine();
if (name == "me"){
global::System.Console.WriteLine( "THIS IS SO AWESOME!!!");
global::System.Console.WriteLine( "I am me!");
}
else if(name == "exit")
global::System.Console.WriteLine( "Exiting...");
global::System.Environment.Exit( 0);
}
else{
global::System.Console.WriteLine( "NOO!!! :(");
global::System.Console.Write( "I am not 'me'...");
}
}
}
}
}