45.0k views
1 vote
Which line in the following program will cause a compiler error? 1 #include 2 using namespace std; 3 int main() 4 { 5 int number = 5; 6 if (number >= 0 && <= 100) 7 cout << "passed.\\"; 8 else 9 cout << "failed.\\"; 10 return 0; 11 }

1 Answer

1 vote

Answer:

Line 1

Step-by-step explanation:

Line one is not complete. It should have been #include <iostream> This line tells the compiler to use the input and output header file for this program, the iostream header file contains the functions necessary for output statements used in 7 and 8

User Daniel Nouri
by
5.3k points