Practice problems
Problem โ Examples โ Hints โ Write pseudocode โ Run โ Trace โ Test โ Explanation. Pick a topic and a difficulty, and go!
Easy
Count from 1 to N
TAKE N and DISPLAY every number from 1 to N, one per line.
#Loops
Medium
Count the digits
TAKE a positive whole number N and DISPLAY how many digits it has.
#Loops
Medium
Factorial
TAKE N and DISPLAY N! (1 ร 2 ร โฆ ร N).
#Loops
Easy
Multiplication table
TAKE N and DISPLAY its table from 1 to 5 in the form N x I = ANSWER.
#Loops
Hard
Reverse a number
TAKE a positive whole number N and DISPLAY its digits reversed (1234 โ 4321).
#Loops
Easy
Sum of 1 to N
TAKE N and DISPLAY the sum 1 + 2 + โฆ + N.
#Loops
๐
No problems match โ try another filter.