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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.