A variable of type double named area holds the area of a circle. Write a statement to
output on the screen the area in two decimal places
doris_3 0
Newbie Poster
Recommended Answers
Jump to Post
printf
will allow you to format output as you'd like.double area = ...; printf ("Area: %0.2f\n", area);
All 2 Replies
L7Sqr 227
Practically a Master Poster
TalhaMoazSarwar
commented:
Great! +0
rubberman 1,355
Nearly a Posting Virtuoso Featured Poster
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.