Amigo code

Learn to code › C

Learn C for beginners.

C is one of the oldest languages and still runs inside operating systems, phones and tiny devices. It is close to the machine, so it is fast and teaches how computers really work.

What you can make with C

Your first C program

#include <stdio.h>

int main(void) {
  printf("Hello, world!\n");
  return 0;
}

The include line brings in the tools for printing. main is where the program starts, and printf prints the text.

C lessons, step by step

  1. 1Say hello

    Make the computer show your first message.

  2. 2Variables

    Boxes that remember things for you.

  3. 3Decisions

    If this is true, do that.

  4. 4Loops

    Repeat something without typing it again.

  5. 5Functions

    Make your own commands.

  6. 6Lists

    Keep many things together.

  7. 7Make something

    Put it all together in a small game or tool.

Start the lessons with AmigoTick off each step, ask for a quiz, or have Amigo build an example.

Free books and guides

Projects to build

Tutorials written by other people, listed in Project Based Learning (MIT licence). They open on their own sites.

Other languages