Given that radius is 2 and area is calculated as 12.5678, use string format operators to print the values of the variables radius and area so that the output looks like this:


#1

Radius is: 2
Area is: 12.57


#2

We can happily answer all your questions, no skin off our backs. But at what cost to you? Are you willing to face expulsion from your school? You reallize that this site comes up in search results, right?

At least try to answer the question, and if you are confused, ask questions. Show us what you have and we can point out errors.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.