93.3k views
2 votes
Could someone please tell me what is the error in my code?

I'm trying to write a code for finding the cube of a number using C programming.

Could someone please tell me what is the error in my code? I'm trying to write a code-example-1
User Msk
by
6.9k points

1 Answer

6 votes

I think you have to remove the semicolon at the end of line 15. From what I see, this is not a logic error, rather than a syntax error.

Looking at the error on the bottom, it's expecting a '(' before the '{'.

User Jfoutch
by
7.5k points