Hello world program
A Hello world program is usually a program made by computer programmers that are new to a programming languages, or to test if the compiler for this language is working correctly. It will simply put the text Hello, World! on the screen. One way to do the Hello World program is shown below, in the C programming language.
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}
On Python programming language:
print("Hello World")
On Pascal programming language
program helloworld;
begin
WriteLn('Hello World');
end.
print("Hello World")
#include <iostream>
int main()
{
std::cout << “Hello World” << std::endl;
return 0;
}
On Julia programming language:
println("Hello, World!")
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
puts "Hello World"
On BASIC programming language:
10 PRINT "Hello World"
Other websites
- helloworld.org
- The Hello World Collection
- codepad.org Archived 2011-06-06 at the Wayback Machine - Can compile some of the programs
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.