Here is how, you can print "Hello World" in different Programming Languages
1. Python
print("Hello World")
Python is a high-level, interpreted, general-purpose programming language created by “Guido van Rossum” in 1991. It emphasizes readability and simplicity, making it one of the most popular languages for beginners and professionals alike.
2. C
#include
int main() {
printf("Hello World\n");
return 0;
}
C is a procedural, low-level programming language developed in 1972 by “Dennis Ritchie” at Bell Labs. It is one of the oldest and most influential languages, forming the foundation for C++, Java, C#, Python, and many others.
3. C++
#include
int main() {
std::cout << "Hello World" << std::endl;
return 0;
}
C++ is a general-purpose, compiled, multi-paradigm programming language created by “Bjarne Stroustrup” in 1985 as an extension of C. It combines low-level memory control (like C) with high-level abstractions (like OOP and templates), making it powerful for performance-critical applications.
4. C#
using System;
class Program
{
static void Main()
{
Console.WriteLine("Hello World");
}
}
C# is a modern, object-oriented, strongly typed programming language developed by “Microsoft” (2000) as part of the .NET platform. It combines the power of C++ with the simplicity of Java.
5. Java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
Java is a high-level, object-oriented, platform-independent programming language developed by “Sun Microsystems” (now Oracle) in 1995. It follows the “Write Once, Run Anywhere” (WORA) principle, meaning compiled Java code runs on any device with a Java Virtual Machine (JVM).
6. JavaScript
console.log("Hello World");