C Practice
Coding challenges from 1★ to 5★.
c 34 Lessons
Every lesson runs in your browser — write real code, press Run, and the tasks check themselves. Free, no account needed, with notes in English and Chinese.
Lessons in this course
- 01 Print a word
- 02 Print another word
- 03 Print a sentence
- 04 Print with a !
- 05 Print two lines
- 06 Print three lines
- 07 Print a number
- 08 Add two numbers
- 09 Subtract
- 10 Multiply
- 11 Remainder
- 12 A number variable
- 13 Add two variables
- 14 Multiply two variables
- 15 Your first function
- 16 Is it positive?
- 17 Cube a number
- 18 The smaller one
- 19 Square a number
- 20 Sign of a number
- 21 Largest of three
- 22 Factorial
- 23 Greatest common divisor
- 24 Count the 1-bits
- 25 Sum an array
- 26 Swap two values
- 27 String length
- 28 Count a character
- 29 Reverse in place
- 30 Palindrome
- 31 Bubble sort
- 32 Points with a struct
- 33 Binary search
- 34 Parse an integer