Skip to content

Instantly share code, notes, and snippets.

@faustoct1
Created July 24, 2022 06:27
Show Gist options
  • Save faustoct1/12e5e1fc42fac68fd2ffa0797a1ee4b7 to your computer and use it in GitHub Desktop.
Save faustoct1/12e5e1fc42fac68fd2ffa0797a1ee4b7 to your computer and use it in GitHub Desktop.
Hello World em 5 linguagens diferentes
/*
Compilar: gcc -o hello hello.c
Executar: ./hello
*/
#include <stdio.h>
int main() {
printf("Hello World\n");
return 0;
}
/*
Compilar: javac hello.java
Executar: java hello
*/
public class hello {
public static void main(String... args){
System.out.println("Hello World");
}
}
// Executar: node hello.js
console.log('Hello World')
# Executar: python hello.js
print("Hello World\n")
# ruby hello.rb
puts "Hello World"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment