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; cout