โ† Back to Learning Home

Programming with Turing

A beginner-friendly introduction to programming using the Turing language.

What is Turing?

Turing is an educational programming language designed to help beginners learn programming concepts clearly and logically. It is commonly used in schools to introduce core ideas such as input, output, variables, and control flow.

โฌ‡ Download Turing 4.1.2


1. Output: Printing Text

The put statement is used to display output on the screen.

put "Hello, world!"
      

Output:

Hello, world!
      
๐Ÿ’ก In Turing, text (strings) must be written inside quotation marks.

2. Input: Getting User Input

Programs often need information from the user. The get statement allows the program to read input.

var name : string
put "Enter your name:"
get name
put "Hello, ", name
      

3. Variables

Variables store data so it can be used later in the program. In Turing, you must declare a variable before using it.

var age : int
age := 16
put "Age:", age
      

4. Decision Making (if statements)

var score : int
get score

if score >= 50 then
    put "Pass"
else
    put "Fail"
end if
      

The program checks a condition and runs different code depending on the result.

5. Loops

for i : 1 .. 5
    put "Hello"
end for
      

This loop prints Hello five times.

What You Should Learn Next

โžค Go to Part 2 โ€“ Control Structures & Graphics