Add two more statements to main() to test inputs 3 and -1. #include
// Function returns origNum cubed
int CubeNum(int origNum) {
return origNum * origNum * origNum;
}
int main(void) {
printf("Testing started\n");
printf("2: Expecting 8, got: %d\n", CubeNum(2));
/* Your solution goes here */
printf("Testing completed\n");
return 0;
}

Solved
Show answers

Ask an AI advisor a question