Skip to the task
Layout
Back to classic view

You are looking ahead. Your place is still task 1: Algorithm.

RUNTask 7 of 21 · step 4: An algorithm as a sequence of statementsRun it and check the sequence
Run it and check the sequence in practice/01/

Run p01_hello (Shift+F10).

Checklist

  • Every task is one commit with a clear message.
Details & hint
$ .\build\debug\practice\01\p01_hello.exe
Hello, world!

Algorithm: the average of grades
1. Add up all the grades.
2. Count how many grades there are.
3. Divide the sum by the count.
4. Print the answer.

You should see: An empty line after "Hello, world!", then the heading and four steps in the same order as in the code.

practice 01 CMakeLists.txt Code Diff
UNCHANGED This step does not change this file.
add_executable(p01_hello main.c)
opened for this task
$ .\build\debug\practice\01\p01_hello.exe
Hello, world!

Algorithm: the average of grades
1. Add up all the grades.
2. Count how many grades there are.
3. Divide the sum by the count.
4. Print the answer.