Programming is a very powerful tool. On the basis of their use, there are many different-2 programming languages.
All programming languages are nearly the same fundamentally but their syntax is little different. We will see this on the basis of print “Hello World” statements in 15+ different programming languages with an example.
1: In Java
System.out.println(“Hello World”)
2: In PHP
echo “Hello World” / print “Hello World”
or
echo(“Hello World”) / print(“Hello World”)
3: In Julia
println(“Hello World”)
4: In Kotlin
println (“Hello world “)
5: In C++
cout << “Hello World “
6: In C#
Console.WriteLine(“Hello World”)
7: In Javascript
console.log(“Hello World”)
8: In Swift
print(“Hello World”)
9: In Python
print(“Hello World”)
10: In C
printf(“Hello World”)
11: In Go
fmt.println(“Hello World”)
12: In Dart
print(‘ Hello World ‘)
13: In Rust
println! (” Hello World “)
14: In Ruby
puts ” Hello World “
15: In Lua
print(” Hello World “)
16: In Objective-C
NSLog (@”Hello World “)
17: In Pearl
print ” Hello World “
18: In R
print (” Hello World “)
19: In Scala
println (“Hello World “)
Note: There is one thing which is highly useful for beginners who are entering in Programming field which is-
“Master at least one programming language(at least basic parts)” then it will easier for you to learn a new programming language.
No Comment! Be the first one.