Q18. Point out the errors in the following program:
cout<<”The square is”<<sqrs;
- The header file iostream.h has not been included.
- The variables var and sqrs have not been declared before using them.
- The statements cin>>var and sqrs=var*var have not been terminated by;
- The return statement of main() is missing.
- The closing bracket ‘}’ is missing.