Hello world in 15 programming languages
There are many programming languages that are available at our disposal. Choosing a particular programming language depends on what you wanna accomplish, what you wanna build.
For instance, if you wanna work on the front end of your website, picking Java is a definitely a wrong step.
Without much ado, I talk a bit about a list of programming language and I’d print Hello world in it.
JavaScript is the programming language for the web. You can use it to create the front-end and the back-end of your website, you can also use it for native mobile Apps and Desktop Apps
To print Hello world:
console.log(‘Hello world’);
Java is an Object Oriented Programming(OOP), it can be used to create Apps (server-side desktop and mobile).
To print Hello world:
class Hello {public static void main(String args[]) {System.out.println("Hello, World");}}
Python is an interpreted, high-level programming language. It widely used for robotics, data science, server-side apps, mobile apps etc.
To print Hello world:
print(‘Hello world’)
Dart is an Object Oriented, class-defined, garbage collected language. It can be used to build websites, server and mobile apps. Flutter was built on Dart.
To print Hello world:
main(){
print(“Hello world”);
}
C is a general purpose, imperative computer programming language. It supports structural programming.
To print Hello world:
#include <stdio.h>int main(void){
printf(“Hello world\n”);
}
C++ is a general-purpose programming language based on C. Many Os, System drivers, games and website uses C++ as their core language.
To print Hello world:
#include <iostream>int main(){
std::count <<
“Hello world\n”;
return 0;
}
C# is a general-purpose programming language developed by Microsoft.
To print Hello world:using System;class Hello{
static void Main(string[] args){
Console.WriteLine(“Hello world”);
}
}
PHP is a server-side scripting language developed for web development. WordPress was built with PHP.
To print Hello world:
<?php echo “Hello world”;>
Swift is a general purpose, multi-paradigm compiled programming language for iOs, macOS etc.
To print Hello world:
println(“Hello world”)
Go is a statically typed, compiled and syntactically similar to C with the added benefits of memory safety, garbage collector etc.
To print Hello world:
package main
import “fmt”
func main()
{
fmt.Println(“Hello world”)
}
Fortran is a general purpose, compiled imperative programming language that’s especially suited for numeric computation and scientific computing.
To print Hello world:
program hello
print *, “Hello world”
end program hello
Kotlin is a statically typed programming language that runs on JVM(Java Virtual Machine) and also can be compiled into JavaScript.
To print Hello world:
fun main(args : Array<String>){
println(“Hello world”)
}
Elixir is a functional, concurrent, general-purpose programming language that runs on the Erlang Virtual Machine.
To print Hello world:
IO.puts “Hello World”
BASIC(Beginner’s All-purpose Symbolic Instruction Code) is a family of general purpose and high-level programming language whose design, philosophy emphasizes ease of use.
To print Hello world:
10 PRINT “Hello world”
Lisp is a family of computer programming languages with a long history and a distinctive fills parenthesized prefix notation.
To print Hello world:
(print “Hello world”)