Exercise 2: Computing Cubes
Compute cubes of variables using functions.
We'll cover the following
Problem statement
Write a function computeCubes
of void
type that takes three integers num1
, num2
, and num3
, computes the cube of all three values, and stores the updated value in the respective variables.
This function is void
type; hence doesn’t return any values.
Sample input
Create a free account to access the full course.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy