Question: 7. Correct the errors in the lines of code shown in Figure 532. The code variable has the char data type; the other variables have
7. Correct the errors in the lines of code shown in Figure 532. The code variable has the char data type; the other variables have the int data type. if (toupper(code) " x ') cout "Discontinued" end1; else cout "How many? "; cin > quantity; total = quantity " 10; / /end if
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
