Toggle navigation
Courses
Questions
Tags
Users
AC practice 4
0
like
0
dislike
6.5k
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
|
6.5k
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,A;
* * * **** * * ** ** **** * ** * ** *
* * * ** * ** * * = sqrt(3) / 4 *a*a ;
* * *** * ** * ** * * * * * * ***
}
answered
Oct 27, 2016
by
410425014
(
-162
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!#include * ** * * ** ** *
* * * ***** * ***
* ** **** *** * *
int main()
{
* ** ** * ** * * *** a;
**** * ** * * * ** * * * * * *** * ** **
* * * ** * * * ** * ** * ** ** * * * * * *** * *
* * * **** * *** * * * * 0;
}
answered
Oct 27, 2016
by
林佳慧
(
-85
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content! ** * * * **
int **
{