Write a program that prints point number through the keyboard and perform the square roots and display the result with 4 digits of decision ti the right of the decimal point
i need a help so badly.

Recommended Answers

All 4 Replies

Always start with what you know. So I'd start with a simple empty program.

Then I'd look up pow() and sqrt().

Finally I'd look up information on output flags and manipulators, particularly those having to do with precision.

I guess he is not supposed to use pow, sqrt , rather use iteration and some approximation numeric algorithms to do so.

i need a help so badly.

Then you should have read The Rules and the post Read This Before Posting

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.