I\'m supposed to make a program that will calculate the priceof a shirt. The shi
ID: 3613687 • Letter: I
Question
I'm supposed to make a program that will calculate the priceof a shirt. The shirt is 80 dollars and it's on a 20%discount. I tried doing this but every time i ran the program, theresult was the same...0! or 0.0!!! I did it using count.... THANK YOU!! I'm supposed to make a program that will calculate the priceof a shirt. The shirt is 80 dollars and it's on a 20%discount. I tried doing this but every time i ran the program, theresult was the same...0! or 0.0!!! I did it using count.... THANK YOU!!Explanation / Answer
*/ Below is the code for your question written in C++ It gives the correct output */ #include using namespace std; int main() { double price = 80; double discount = 20; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.