write a programe in c to find the square and cube of any number
and print

Recommended Answers

All 3 Replies

This is a really easy program. Have you tried doing it on your own? If so, post what you have and we can work from there. :)

There are no square or cube functions or operators in standard c. There are though functions for logarithms and such. It also depends what precision the result should be, if it has to be a very high precision, you should use some special math library. Please, also, write a bit more exact title to your threads, so that others would also see what the thread is about -- c means nothing because all this forum is about c.

Be a part of the DaniWeb community

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