Question: 2- What's wrong with these if-statements? Which ones are syntax errors and which ones are logic errors? if(x=1||2||3) cout < < x is a
2- What's wrong with these if-statements? Which ones are syntax errors and which ones are logic errors? if(x=1||2||3) cout < < "x is a number in the range 1-3"; if (x > 5) && (y < 10) cout < < "Yahoo!"; if (response != 'Y' || response != 'N') cout
Step by Step Solution
3.46 Rating (149 Votes )
There are 3 Steps involved in it
Answer There are syntax errors in the ifstatements provided Here is a breakdown ... View full answer
Get step-by-step solutions from verified subject matter experts
