UK Bebras


OUCC Tutorials: blockly coding [1 of 7]

Tutorials index

Blockly Coding Tasks

This type of task is very flexible: Task authors can set problems where a variety of solutions can be given credit for producing the correct answer. These tasks use Function blocks and take this form:
Function Example

Try writing this code into the function in the workspace below.
simple code

This function now adds the values in the variables b and c, adds them and returns the sum. Run the program to see how this works.

Next >>

Recommended practice
Functions, Procedures and Subroutines

Example 1
Example 2
Example 3
Example 4

Tutorials index