Variables coding challenges

Practise variables with 5 coding challenges, from easy to hard. Every challenge runs in your browser with instant tests, an AI review of your code and community solutions to compare.

Easy · 5

Skills you'll practise: ArithmeticFormulasDivisionFloating pointOperator precedencePercentagesReturn valuesWord problems
  • Python · C++ · C#
  • Automated tests
  • AI code review
  • Community solutions
226
Challenges
2
Solutions shared
3
Languages

All challenges

Search by topic, language, or difficulty.

5 challenges
Easy

Average of Three

Average three whole numbers.

You'll learn ArithmeticDivision
BeginnerLearning-pathVariables
Easy

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

You'll learn ArithmeticReturn values
BeginnerLearning-pathVariables
Easy

Celsius to Fahrenheit

Convert a temperature from Celsius to Fahrenheit.

You'll learn FormulasOperator precedence
BeginnerLearning-pathVariables
No solutions yet
Easy

Simple Interest

Find the total amount after simple interest.

You'll learn PercentagesWord problems
BeginnerLearning-pathVariables
No solutions yet
Easy

Body Mass Index

Compute BMI from weight and height.

You'll learn FormulasFloating point
BeginnerLearning-pathVariables
No solutions yet