Please I need someone to help me write a function for x^3-w^k/q

Sorry, but we don't do your homework for you. In any case, look up the use of the pow() function.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.