help Where is the mistake

// This program demonstrates a compile error.
// Lihong Feng
#include <iostream>
using namespace std;
int main()
{
int number;
float total;
cout << "Today is a great day for Lab"
cout << endl <<
"Let's start off by typing a number of your choice" << endl;
cin >> number;
total = number * 2;
cout << total << " is twice the number you typed" << endl;
return 0;
}
The comnpiler will tell you about compiler errors.

https://ideone.com/aFCJAP

The compiler says:

prog.cpp: In function ‘int main()’:
prog.cpp:10:1: error: expected ‘;’ before ‘cout’
cout << endl <<


The compiler says it expected ; before the cout on line 10.
Topic archived. No new replies allowed.