Correct the errors in the lines of code shown. The code variable has the char data type;
Fantastic news! We've Found the answer you've been seeking!
Question:
Correct the errors in the lines of code shown. The code variable has the char data type; the other variables have the int data type.
if (toupper(code) = 'x')
cout << "Discontinued" << endl;
else cout << "How many? ";
cin >> quantity; total = quantity * 10;
//end if With the next problem you must do the program, run it and if necessary debug it. Then submit the code and the running output.
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date: