javascript - 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 -
this code given create programme not working can 1 help?
var rad; var pi,item, total; var area, item, total; var circum, item, total; rad = readnumber("please come in radius of circle"); pi = 3.1416; area = rad * rad * pi; circum = 2 * rad * pi; printline ("the radius entered is"rad); printline ("the area of circle is"area); printline ("the circumference is"circum);
you need utilize concatenation:
printline("the radius entered is" + rad);
see +
.
javascript
No comments:
Post a Comment