Created
July 24, 2022 06:27
-
-
Save faustoct1/12e5e1fc42fac68fd2ffa0797a1ee4b7 to your computer and use it in GitHub Desktop.
Hello World em 5 linguagens diferentes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Compilar: gcc -o hello hello.c | |
Executar: ./hello | |
*/ | |
#include <stdio.h> | |
int main() { | |
printf("Hello World\n"); | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Compilar: javac hello.java | |
Executar: java hello | |
*/ | |
public class hello { | |
public static void main(String... args){ | |
System.out.println("Hello World"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Executar: node hello.js | |
console.log('Hello World') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Executar: python hello.js | |
print("Hello World\n") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ruby hello.rb | |
puts "Hello World" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment