缺少)在参数列表之后-我如何在这个简单的代码中修复它我一直在改变事情,得到了dif错误,但无法解决这个问题

missing ) after argument list - how do I fix it in this simple code I keep changing things and get dif errors but cant figure this one out

本文关键字:改变 dif 解决 问题 我一直在 错误 之后 列表 参数 缺少 代码      更新时间:2023-09-26

这是我们用来创建程序的代码,但它不起作用,有人能帮忙吗?

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);

您需要使用串联:

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

参见+