ImReallyBadAtCoding - 4 months ago 25

C Question

That's my code -

`main()`

{

double x;

double y = pow(((1/3 + sin(x/2))(pow(x, 3) + 3)), 1/3);

printf("%f", y);

return 0;

}

I get an error in

`double y = pow((1/3 + sin(x/2))(pow(x, 3) + 3), 1/3);`

`(1/3 + sin(x/2))(pow(x, 3) + 3)`

`pow(x, y);`

Answer

If you want to multiply, you need to use the `*`

operator. You can't put parenthesized expressions adjacent to each other to denote multiplication.

```
(1/3 + sin(x/2))*(pow(x, 3) + 3)
```