#include #include using namespace std; int main() { double bottles {27.0}; double bottlesPerSixpack {6.0}; //Outputs 4.5 (the right answer). cout << "You have " << bottles / bottlesPerSixpack << " sixpacks.\n"; //Outputs 4.5 (the right answer). cout << "You have " << 27.0 / 6.0 << " sixpacks.\n"; int iBottles {27}; int iBottlesPerSixpack {6}; //Outputs 4 (a wrong answer). cout << "You have " << iBottles / iBottlesPerSixpack << " sixpacks.\n"; //Outputs 4 (a wrong answer). cout << "You have " << 27 / 6 << " sixpacks.\n"; return EXIT_SUCCESS; }