Ask Question
3 March, 01:12

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./n"; 8 else 9 cout << "failed./n"; 10 return 0; 11 }

+1
Answers (1)
  1. 3 March, 01:35
    0
    Line 1

    Explanation:

    Line one is not complete. It should have been #include 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
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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 ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers