Today we will see the basic hello world program in different Programming Language. This will not a logical post it’s just a basic view of different programming language for general knowledge.
History
While Small test program existed since the development of the programmable computers, the tradition of using the phrase “Hello, World!” as a test message was influenced by an example program in the seminal book “The C Programming Language”. The Example program from that book prints “hello, world” (without capital letters or exclamation mark), and was inherited from a 1974 Bell Laboratories internal memorandum by Brian Kernighan, “Programming in C: A Tutorial, which contains the first known version. the first known instance of the usage of the word “hello” and “world” together in computer literature occurred earlier, in Kernighan’s 1972 Tutorial “Introduction to the Language B”.
source: https://en.wikipedia.org/wiki/%22Hello,_World!%22_program
C Programming
C was originally developed by Dennis Ritchie between 1969 and 1973 at Bell Labs and used to re-implement the Unix operating system. It has since become one of the most widely used programming languages of all time, with C compilers from various vendors available for the majority of existing computer architectures and operating systems. C has been standardized by the American National Standards Institute (ANSI) since 1989 (see ANSI C) and subsequently by the International Organization for Standardization (ISO).
Read More
#include <stdio.h>
int main(void)
{
printf("Hello World! \n");
return 0;
}
D Programming
The D programming language is an object-oriented, imperative, multi-paradigm system programming language created by Walter Bright of Digital Mars and released in 2001. Bright was joined in the design and development effort in 2007 by Andrei Alexandrescu. Though it originated as a re-engineering of C++, D is a distinct language, having redesigned some core C++ features while also taking inspiration from other languages, notably Java, Python, Ruby, C#, and Eiffel.
Read More
module helloworld;
import std.stdio;
void main(){
writeln("Hello World!");
}
Delphi Programming Language
Embarcadero Delphi is an integrated development environment (IDE) for desktop, mobile, web, and console applications. It’s also an event driven language. Delphi’s compilers use their own Object Pascal dialect of Pascal and generate native code for several platforms: Windows (x86 and x64), OS X (32-bit only), iOS (32 and 64-bit), Android and Linux (64-bit Intel).
Program Hello_World;
{ &APPTYPE CONSOLE }
Begin
WriteLn("Hello World!");
End.
Boo Programming Language
Boo is an object-oriented, statically typed, general-purpose programming language that seeks to make use of the Common Language Infrastructure’s support for Unicode, internationalization, and web applications, while using a Python-inspired syntax and a special focus on language and compiler extensibility. Some features of note include type inference, generators, multimethods, optional duck typing, macros, true closures, currying, and first-class functions.
import System.Drawing
import System.Windows.Forms
f= Form()
f.Controls.Add(Label(Text: "Hello World!"), Location: Point(40,30))
f.Controls.Add(Button(Text: "Ok"), Location: Point(50,50), Click: {Application.Exit()})
Application.Run(f)
Groovy Programming Language
Apache Groovy is an object-oriented programming language for the Java platform. It is a dynamic language with features similar to those of Python, Ruby, Perl, and Smalltalk. It can be used as a scripting language for the Java Platform, is dynamically compiled to Java virtual machine (JVM) bytecode, and interoperates with other Java code and libraries. Groovy uses a Java-like curly-bracket syntax. Most Java code is also syntactically valid Groovy, although semantics may be different.
println "Hello World!"
Perl
Perl is a family of high-level, general-purpose, interpreted, dynamic programming languages. The languages in this family include Perl 5 and Perl 6.
Though Perl is not officially an acronym, there are various backronyms in use, including “Practical Extraction and Reporting Language”. Perl was originally developed by Larry Wall in 1987 as a general-purpose Unix scripting language to make report processing easier.
print "Hello, World!";
Java
Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers “write once, run anywhere” (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
C++
C++ was designed with a bias toward system programming and embedded, resource-constrained and large systems, with performance, efficiency and flexibility of use as its design highlights. C++ has also been found useful in many other contexts, with key strengths being software infrastructure and resource-constrained applications, including desktop applications, servers (e.g. e-commerce, web search or SQL servers), and performance-critical applications (e.g. telephone switches or space probes)
#include
using namespace std;
int main()
{
cout << "Hello World!";
return 0;
}
Lua
Lua was originally designed in 1993 as a language for extending software applications to meet the increasing demand for customization at the time. It provided the basic facilities of most procedural programming languages, but more complicated or domain-specific features were not included; rather, it included mechanisms for extending the language, allowing programmers to implement such features.
local msg_1 = "Hello"
local msg_2 = "World !"
print(msg_1,msg_2)
Ruby
According to its creator, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, and Lisp. It supports multiple programming paradigms, including functional, object-oriented, and imperative. It also has a dynamic type system and automatic memory management.
puts 'Hello World!';
JavaScript
JavaScript is a programming language that adds interactivity to your website (for example: games, responses when buttons are pressed or data entered in forms, dynamic styling, animation). This article helps you get started with this exciting language and gives you an idea of what is possible.
Document.writeln("Hello World!");
//or
console.log("Hello World!");
Objective-C
Objective-C is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language. It was the main programming language used by Apple for the OS X and iOS operating systems, and their respective application programming interfaces (APIs) Cocoa and Cocoa Touch prior to the introduction of Swift.
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSLog (@"Hello, World!");
return 0;
}
TCL
Tcl (Tool Command Language) is a dynamic programming/scripting language based on concepts of Lisp, C, and Unix shells. It can be used interactively, or by running scripts (programs) which can use a package system for structuring, hence allowing to do much with little code. Tcl is available for Linux, Windows, Mac OS X, as well as other platforms, as open-source software under BSD-like license, or as pre-built binaries.
puts "Hello World!"
AutoIt
AutoIt is a freeware automation language for Microsoft Windows. In its earliest release, the software was primarily intended to create automation scripts (sometimes called macros) for Microsoft Windows programs but has since grown to include enhancements in both programming language design and overall functionality.
msgbox(0,"","Hello World!")
BASIC
BASIC (an acronym for Beginner’s All-purpose Symbolic Instruction Code) is a family of general-purpose, high-level programming languages whose design philosophy emphasizes ease of use. In 1964, John G. Kemeny and Thomas E. Kurtz designed the original BASIC language at Dartmouth College in New Hampshire, United States.
10 PRINT "Hello World!"
Python
Python is a widely used high-level programming language for general-purpose programming, created by Guido van Rossum and first released in 1991. An interpreted language, Python has a design philosophy that emphasizes code readability (notably using whitespace indentation to delimit code blocks rather than curly brackets or keywords), and a syntax that allows programmers to express concepts in fewer lines of code than might be used in languages such as C++ or Java
import sys
sys.stdout.write("Hello World!");
R Programming Language
R is an open source programming language and software environment for statistical computing and graphics that is supported by the R Foundation for Statistical Computing. The R language is widely used among statisticians and data miners for developing statistical software and data analysis
cat ("Hello, world!")
ASP.NET Programming Language
ASP.NET is an open-source server-side web application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services.
Read More
using System;
public class Program
{
public static void Main()
{
Console.WriteLine("Hello World!");
}
}
SQL Programming Language
SQL (Structured Query Language) is a domain-specific language used in programming and designed for managing data held in a relational database management system (RDBMS), or for stream processing in a relational data stream management system (RDSMS).
Read More
SELECT "Hello World!" AS message;
BrainFuck Language
Brainfuck is an esoteric programming language created in 1993 by Urban Müller, and notable for its extreme minimalism.The language consists of only eight simple commands and an instruction pointer. While it is fully Turing-complete, it is not intended for practical use, but to challenge and amuse programmers. Brainfuck simply requires one to break commands into microscopic steps.
Read More
++++++[>++++++++++++<-]>.
>++++++++++[>++++++++++<-]>+.
+++++++.
.
+++.
>++++[>+++++++++++<-]>.
<+++[>----<-]>.
<<<<<+++[>+++++<-]>.
>>.
+++.
------.
--------.
>>+.
This Seems Look Funny But It’s Real