Question: C++ Part 1 Allow the user to enter an integer. Compute the number's cube (x3) and store it as an int, then print this value
C++

Part 1 Allow the user to enter an integer. Compute the number's cube (x3) and store it as an int, then print this value (i.e. the int you just computed). Next divide the int result by 3 and print the remainder. Part 2 Allow the user to enter an integer and then a decimal (fractional) number. Divide the integer by 6 and print the result. Divide the decimal number by 6 and print the result. Sample Input 5 27 27.0 Sample Output Part 1: Enter integer: 5 Cubed: 125 Remainder: 2 Part 2: Enter integer: 27 Enter decimal: 27.0 Integer division: 4 Decimal division: 4.5 4 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
