Toggle navigation
Courses
Questions
Tags
Users
AC practice 4
0
like
0
dislike
872
views
正三角形的面積公式是[4分之根號3乘a平方],請設計一個程式,讓使用者輸入正三角形的邊長,然後輸出正三角形的面積,輸出時請輸出並四捨五入到小數點後兩位。
範例輸入:
8
範例輸出:
21.71
[Normal]
Coding (C)
-
asked
Oct 13, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 13422 -
Available when:
Unlimited
-
Due to:
Unlimited
3
flags
|
872
views
comment
0
0
Called for Help
Please
log in
or
register
to add a comment.
35
Answers
0
like
0
dislike
Hidden content!** * * * ** * ** **
#include * **** *** * * **
int main()
{
* **** ** ** *** * ** * * A ,B;
* **** ** ** * ** * * * **** ** *** * *
* * *** *** * ** * = sqrt(3)/4*A*A;
* ** * ** *** * * * * * ***** * * * *
}
answered
Jan 14, 2017
by
shihemi
(
-82
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!* * * *** * *
* **** * * * * *
int main (void)
{
** ** * * * int a,i;