C# version
namespace WriteHelloWorld
{
class Program
{
static void Main(string[] args)
{
while (!"0".Equals(System.Console.Title = "Hello world").Equals(System.Console.ReadLine()))
{
}
}
}
}
C++ version
#include "stdio.h"
int main()
{
while( !printf( "Hello World\n" ) )
{
}
}
Aug 24, 2007
Display Hello World without semicolon
Posted by
DevGod
at
5:02:00 AM
Subscribe to:
Post Comments (Atom)
1 comments:
class Program
{
static void Main(string[] args)
{
while (args == typeof(System.Console).InvokeMember("WriteLine",
(System.Reflection.BindingFlags)280, null, null,
new object[] { "Hello, world!" }))
{ }
}
}
will do the trick too
Post a Comment