Write a statement to set the value of priceequal to three times the value of cost.
LANGUAGE: C++
CHALLENGE:
Write a statement to set the value of priceequal to three times the value of cost.(The variables have already been declared and cost has already been initialized .)
SOLUTION:
price = 3 * cost;
Posted in C++, Learn To Code