Search Results

Searching for: C++

Individual Exercises

0 / 50

Write a function in C++ called 'factorial' that will take a positive integer as input and returns its factorial. In math, a factorial is...

0 / 50

Given an input integer x for a math function defined by y = 3*(x^2) + 5 (three multiplied by the square of x plus five). The variable y...

0 / 50

Given a decimal number called input, calculate the cube of this number. Store the result in the decimal variable called myCube.

0 / 50

Write a function called isOdd that receives one integer and returns true if that number is odd (has non-zero remainder when dividing by...