
Hello world (Hello World) in different programming languages
Hello world or Hello world in Spanish is one of the first things we must learn when learning a programming language.
My interest is to show you the different hello world in each modern programming language.
1 C
The old C language never goes out of style and its inspiration to so many languages. Here its hello world.
Hello world in C
# include
int main() {
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
}
2.JAVA
Java is one of the most used languages in mobile environments, due to its interaction with the Android language and in artificial intelligence.
Hello World in Java
public classes HelloWorld { public static void main(String[] args) { // Prints "Hello, World" to the terminal window. System.out.println("Hello, World"); } }
3.python
Python is a modern and robust language that is very interesting to know, it is used for AI and computer security, although its applications are endless.
Hello world in Python
# This program prints Hello, world!
prints('Hello, world!')
4. SWIFT
Swift the default language in Apple products, to program on the iPhone
Hello world in Swift
// Hello, World! program
import swift
prints("Hello, World!")
5.JavaScript
The default front-end language on the WEB JavaScript earns its first place as the most used language and it is not surprising.
Hello world in JavaScript
<
script>
alert
(
'Hello, world!'
)
;
</
script>
7.GO
GO is one of the most paid languages currently, since few people have tried to master it and it is a well paid language although not in all parts of the world.
// First Go program package main import "fmt" // Main function func main() { fmt.Println( "!...Hello World...!" ) } |
8.C++
Adobe applications are programmed as the successor to C with this language, only with that you can know its potential.
Hello world in C++
// Your First C++ Program
# include
int main() {
std::cout << "Hello World!";
return 0;
}
BONUSES
C#
As a bonus we leave C# we find it very interesting when creating video games since it is used by graphics engines such as Unity
Hello world in C#
For example:
// C# program to print Hello World! using System; // namespace declaration namespace HelloWorldApp { // Class declaration classes geeks { // Main Method static void Main( string [] args) { // statement // printing Hello World! Console.WriteLine( "Hello World!" ); // To prevent the screen from // running and closing quickly Console.ReadKey(); } } } |