Hello World in 10 Programming Language
1.) C (ANSI)
1
2
3
4
5
6
7
8
| #include /* Hello */ int main( void ) { printf ( "Hello, World!" ); return 0; } |
2.) C#
1
2
3
4
5
6
7
8
| using System; class HelloWorld { static void Main() { System.Console.WriteLine( "Hello, World!" ); } } |
3.) C++ (ISO)
1
2
3
4
5
6
| #include int main() { std::cout << "Hello, World!\n" ; } |
4.)Html
1
| Hello, World!</pre> |
5.) Java
1
2
3
4
5
6
7
| class HelloWorld { public static void main(String[] args) { System.out.println( "Hello World!" ); } } |
6.) Ms-Dos batch
1
2
3
| The @ symbol is optional and prevents the system from displaying the command before executing it. @echo Hello, World! |
7.)PHP
1
| <!--?php echo "Hello World" ; ?--> |
8 ) Python
1
2
3
4
5
6
7
| $ vim helloworld.py #!/usr/bin/python # Hello world python program print "Hello World!" ; |
9.) ShellScript
1
| echo "Hello World" |
10.) Visual Basic .Net
1
2
3
4
5
| Private Sub frmForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load MessageBox.Show( "Hello World!" , "HELLO WORLD" ) End Sub |
If You Know Then Comment It.
No comments:
Post a Comment