Difference between revisions of "Hello world program"

From CS 61A Wiki
Jump to: navigation, search
[checked revision][checked revision]
(Note: the purpose of this page is really to test the Scribunto extension. It looks like Scribunto works as expected.)
 
m ({{Sufficient-class}})
 
Line 1: Line 1:
 +
{{Sufficient-class}}
 
A '''"Hello world" program''' is a program that outputs the string "{{#invoke:Bananas|hello}}" or a similar expression onto a certain display, such as the terminal window. This program is simple, yet highlights some of the important features of a programming language, such as its data types and output functionality. This program is therefore commonly used as the first program to demonstrate a programming language to a beginner. This program can also be used to check that a certain program is installed and functioning correctly.
 
A '''"Hello world" program''' is a program that outputs the string "{{#invoke:Bananas|hello}}" or a similar expression onto a certain display, such as the terminal window. This program is simple, yet highlights some of the important features of a programming language, such as its data types and output functionality. This program is therefore commonly used as the first program to demonstrate a programming language to a beginner. This program can also be used to check that a certain program is installed and functioning correctly.
  

Latest revision as of 22:57, 23 June 2014

A "Hello world" program is a program that outputs the string "Hello, world!" or a similar expression onto a certain display, such as the terminal window. This program is simple, yet highlights some of the important features of a programming language, such as its data types and output functionality. This program is therefore commonly used as the first program to demonstrate a programming language to a beginner. This program can also be used to check that a certain program is installed and functioning correctly.

Example

In Python:

print("Hello, world!")

Sources