Identify the compiler errors, and state what is needed to eliminate the error(s).

```
// This is a little program
that calculates a modulus answer.
int main()
{
double x,y,answer;
answer = x%y;
cout << “\n\n answer = << answer;
return 0;
}
```

```
// This is a little program
that calculates a modulus answer.
int main()
{
double x,y,answer;
answer = x%y; //mod only works on ints, declare as ints
cout << “\n\n answer = << answer;
return 0;
}
```

Computer Science & Information Technology

You might also like to view...

The Performance Diagnostics Report is a pre-built report that contains an easy to understand summary of a computer's overall performance

Indicate whether the statement is true or false

Computer Science & Information Technology

The Photos app will create _____ automatically when it identifies a large number of related photos.?

A. ?albums B. ?collections C. ?folders D. ?apps

Computer Science & Information Technology