OLÁ MUNDO EM DIVERSAS LINGUAGENS DE PROGRAMAÇÃO


C

#include<stdio.h> int main(void) { printf("Ola Mundo!\n"); return 0; }

C++
#include <iostream> int main() { std::cout << "Ola Mundo!" << std::endl; return 0; }

Shell Script
#!/bin/bash echo "Ola Mundo!"

Pascal
program OlaMundo; begin WriteLn('Ola Mundo!'); end

Visualg Portugol
algoritmo "OlaMundo" var inicio escrevaL("Ola Mundo!") fimalgoritmo

Prolog
write('Ola Mundo!')

Ruby
puts "Ola Mundo!"

Python
print "Ola Mundo!"

Lua
print "Ola Mundo!"

Gambas Basic
print "Ola Mundo!"

Java
public class java { public static void main(String[] args) { System.out.println("Ola Mundo"); } }

JavaScript
alert("Ola Mundo");

Cobol
IDENTIFICATION DIVISION. program-id. Helloworld. procedure division. display "Ola Mundo". stop run.

PHP
<?php print("Ola Mundo"); ?>

HTML
<!DOCTYPE html> <html> <head> <title>Ola Mundo HTML</title> </head> <body> <h1>Ola Mundo</h1> </body> </html>
 Scratch