-2

これは、プログラムを作成するために与えられたコードですが、機能していません。

var rad; var pi,item, total; var area, item, total; var circum, item, total;
rad = readNumber("Please enter the radius of a circle");
pi = 3.1416;
area = rad * rad * pi;
circum = 2 * rad * pi;
printLine ("The radius you entered is"rad);
printLine ("The area of the circle is"area);
printLine ("The circumference is"circum);
4

1 に答える 1

1

連結を使用する必要があります。

printLine("The radius you entered is" + rad);

を参照してください+

于 2013-02-11T22:07:21.787 に答える