Track C
C track

Grains

An exercise from the C track
easy

About this exercise

Calculate the number of grains of wheat on a chessboard given that the number on each square doubles.

bitwise operations
control flow loops
performance optimizations
View all solutions