Question: Write a C++ program that reads in the price of a pen and the number of it, and then output total price in dollar, like
Write a C++ program that reads in the price of a pen and the number of it, and then output total price in dollar, like $3.20
- use cin to get numbers and use cout to output result.
- use double to store the price of a pen, and use int to store the number of pen.
- in C++
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
