Program To Print Hello World

Description

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Hello World program is a very basic program to start any programming language.
It only shows how to display Hello World on the console.
Hello World program is a very basic program to start any programming language. It only shows how to display Hello World on the console.
Hello World program is a very basic program to start any programming language. 
It only shows how to display Hello World on the console.

C/C++

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
/* First c program */
//Save it as HelloWorld.c
#include<stdio.h>
int main(){
//It will display Hello World in the console
printf("Hello World");
return 0;
}
/* First c program */ //Save it as HelloWorld.c #include<stdio.h> int main(){ //It will display Hello World in the console printf("Hello World"); return 0; }
/* First c program */
//Save it as HelloWorld.c

#include<stdio.h>
int main(){
    //It will display Hello World in the console
    printf("Hello World");

    return 0;
}
program to print hello world in c
program to print hello world in c

Java

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
/* First java program */
//Save it as HelloWorld.java
import java.io.*;
public class HelloWorld {
public static void main(String[] args) {
//It will display Hello World in the console
System.out.println("Hello World");
}
}
/* First java program */ //Save it as HelloWorld.java import java.io.*; public class HelloWorld { public static void main(String[] args) { //It will display Hello World in the console System.out.println("Hello World"); } }
/* First java program */
//Save it as HelloWorld.java

import java.io.*;

public class HelloWorld {

    public static void main(String[] args) {
        //It will display Hello World in the console
        System.out.println("Hello World");
    }
}
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Output:
Hello World
Output: Hello World
Output:
Hello World

Related Program

1) Array Program
2) String Program
3) Linked List Program
4) Searching Program
5) Sorting Program
6) Add Two Numbers
7) Program to subtract two numbers
8) Program to multiply two numbers
9) Program to divide two numbers
10) Program to find modulus of two numbers
Share Me

Leave a Reply