//Using a constant #include using namespace std; int main() { const int LEGS_PER_COW = 4; //number of legs per cow int cows; //number of cows int total_legs;; //total number of legs //assign value to cows cows = 5; //calculate the total legs total_legs = cows*LEGS_PER_COW; //output the result cout << "The total number of legs for " << cows << " cows is " << total_legs << endl; system("pause"); return 0; }