Imran Hossan

Web Designer

Blogger

Freelancer

Photographer

Writter

SEO Expert

Imran Hossan

Web Designer

Blogger

Freelancer

Photographer

Writter

SEO Expert

Blog Post

Hello world!

November 10, 2021 Programming

Hello World! How are you? are you alright?

Hello World in Different Programming Languages

Bash

echo "Hello World"

Basic

PRINT "Hello, world!"​

C

#include 
 
int main(void)
{
    puts("Hello, world!");
}

C++

#include 
 
int main()
{
    std::cout << "Hello, world!
";
    return 0;
}

C#

using System;
class Program
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello, world!");
    }
}

Clipper

? "Hello World"

CoffeeScript

console.log 'Hello, world!'

Delphi

program HelloWorld;
begin
  Writeln('Hello, world!');
end.

HTML

 Hello World!

Java

import javax.swing.JFrame;  //Importing class JFrame
import javax.swing.JLabel;  //Importing class JLabel
public class HelloWorld {
    public static void main(String[] args) {
        JFrame frame = new JFrame();           //Creating frame
        frame.setTitle("Hi!");                 //Setting title frame
        frame.add(new JLabel("Hello, world!"));//Adding text to frame
        frame.pack();                          //Setting size to smallest
        frame.setLocationRelativeTo(null);     //Centering frame
        frame.setVisible(true);                //Showing frame
    }
}

JavaScript

document.write('Hello, world!');

jQuery

$("body").append("Hello world!");

Julia

println("Hello world!")

Logo

print [Hello, world!]

MatLab

disp('Hello, world!')

Objective-C

#import 
#import 
 
int main(void)
{
    NSLog(@"Hello, world!
");
    return 0;
}

Pascal

program HelloWorld;
begin
  WriteLn('Hello, world!');
end.

Perl 5

print "Hello, world!
";

PHP

<?php
echo "Hello World!";
?>

Processing

void setup(){
  println("Hello, world!");
}

Python

print "Hello, world!"

R

cat('Hello, world!
')

Ruby

puts "Hello, world!"

Swift

println("Hello, world!")
Taggs: