Your First Program in different languages


 

what about C and your first "Hello world !!" program in C.

c is a pop (procedural oriented programing) language .This language is developed in 1972 by Dennis M. Ritchie at the Bell  laboratory. It can be used to develop software like operating systems, databases, compilers, and  many type of software. we can say that, c language is father of all languages .C Filename extensions is : .c

C
#include <iostream>
using namespace std;

int main()
{

    cout << "Hello World!!";
    return 0;
}

what about C++ and your first "Hello world !!" program in C++.

c is a OOP (object oriented programing ) language. This language is developed in 1979 by computer scientist Bjarne Stroustrup at Bell Laboratory . It can be used to develop operating systems, browsers, games, and so on. it is a efficient and flexible language similar to C that also provided high-level features for program . it is a sub set of c language. C++ Filename extensions is : .cpp

C++
#include <iostream>
using namespace std;

int main() {

    cout<<"Hello World!!";
    return 0;
}

what about JAVA and your first "Hello world !!" program in JAVA.

java is a also OOP(object oriented programing ) language. Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java platform. There are different versions is used  as of September 2020, the latest version is Java 15, with Java 11, a currently supported long-term support (LTS) version, released on September 25, 2018. it can be used  Mobile applications (specially Android apps),Desktop applications, web applications, web servers and application servers, games, database connection and much, much more. JAVA Filename extensions is : .java

Java
/*package whatever //do not write package name here */

import java.io.*;

class FirstProgram {
    public static void main (String[] args) {
        System.out.println("Hello World!!");
    }
}

Output
Hello World!!

what about PYTHON and your first "Hello world!!"program in PYTHON.

python is a  object oriented programing language. It was created by Guido van Rossum, and released in 1991. It is used for web development (server-side),software development, mathematics, system scripting. This is very easy to learn python have also very powerful library support .The most recent major version of Python is Python 3.

Python is one of the most widely used language over the web. I'm going to list few of them here:

Easy-to-learn − Python has few keywords, simple structure, and a clearly defined syntax. This allows the student to pick up the language quickly.

Easy-to-read − Python code is more clearly defined and visible to the eyes.

Easy-to-maintain − Python's source code is fairly easy-to-maintain.

A broad standard library − Python's bulk of the library is very portable and cross-platform compatible on UNIX, Windows, and Macintosh.

Interactive Mode − Python has support for an interactive mode which allows interactive testing and debugging of snippets of code.

Portable − Python can run on a wide variety of hardware platforms and has the same interface on all platforms.

Extendable − You can add low-level modules to the Python interpreter. These modules enable programmers to add to or customize their tools to be more efficient.

Databases − Python provides interfaces to all major commercial databases.

GUI Programming − Python supports GUI applications that can be created and ported to many system calls, libraries and windows systems, such as Windows MFC, Macintosh, and the X Window system of Unix.

Python

# code
print "Hello World!!"

Output
Hello World!!

Comments