basci syntax

1. output those content in console

 

 

 

 

2.define 5 variables , 1st one repsent your age, 2nd one represent your height, 3nd one repsent your Java score , 4th -> Math score, 5th -> History score. output content as below:

My age is xx , my height is xx, my Java score is xx, my Math score is xx, my History score is xx

(reminder: all those xx are the value you saved in those variables)

 

3.define a variable, represent the radius or a circle. assuming pi is 3.14, now please calculate the perimeter and area of that circle.. output content as below(you need to replace xx with the value of the certain variable):

the radius of this circle is xx ,

the perimeter of this circle is xx ,

the area of this circle is xx 

posted @ 2024-04-11 23:09  派若多克斯  阅读(27)  评论(0)    收藏  举报