Exercise 2: Computing Cubes

Let's compute cubes of variables using functions.

Problem Statement

In this exercise, you have to 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