calculate triangle area - simple version


Submit solution

Points: 10 (partial)
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type
Allowed languages
Java 19, Java 8

題目說明

請讓使用者輸入一正整數s,計算邊長為s的正三角形面積,輸出至小數後三位

輸入限制 正整數

輸入

正三角形邊長s

輸出

正三角形面積(小數後三位)

\[√3/4*邊長^2\]

測試資料0 輸入

3

測試資料0 輸出

3.897

Comments

There are no comments at the moment.