-2

円の面積と円周を計算するコードを Java で作成しました。出力を印刷したい場合、次のことができません。

"The area of a circle with a radius of" +radius "is" +area

代わりに、次のように出力されます。

"The area of a circle with a radius of" +radius
"is" +area

可能な解決策を事前にありがとうございます。

4

1 に答える 1