The World of "Hello World".
Posted on 07. Dec, 2007 by jesh in Uncategorized
They say that conquering the world of the “Hello World” problem brings you to the edge of learning new programming languages. A-B-C steps of learning programming languages always starts with the question “How do i produce an output?” Most programming tutorials always start with the simple exercise of producing the “Hello World” output. In this entry, I am to teach and share to you how to output the most basic “Hello World” string in some of the commonly used applications for console and for web.
JAVA:
import java.io.*;
public class MyProgram{
public static void main(String[] args) throws IOException{
System.out.println(“Hello World!”);
}
}
C#:
using System ;
class MyProgram{
public static void main(String[] args){
Console.Write(“Hello World!”);
}
}
C:
#include <stdio.h>
int main (){
printf(“Hello World!”);
return 0;
}
C++:
#include <iostream>
using namespace std;
int main (){
cout<<”Hello World!”<<endl;
return 0;
}
VB:
Imports System
Public Sub Main ()
Console.WriteLine(“Hello World!”)
End Sub
JSP/ASP:
<html>
<head>
<title>My WebPage</title>
</head>
<body>
<%= Hello World! %>
</body></html>
PHP:
<html>
<head>
<title>My WebPage</title>
</head>
<body>
<?php echo “Hello World!”; ?>
</body>
</html>







