Toggle navigation
Courses
Questions
Tags
Users
AD practice 4
0
like
0
dislike
2.9k
views
正三角形的面積公式是[4分之根號3乘a平方],請設計一個程式,讓使用者輸入正三角形的邊長,然後輸出正三角形的面積,輸出時請輸出並四捨五入到小數點後兩位。
範例輸入:
8
範例輸出:
21.71
[Normal]
Coding (C)
-
asked
Oct 13, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 13421 -
Available when:
Unlimited
-
Due to:
Unlimited
|
2.9k
views
comment
Please
log in
or
register
to add a comment.
21
Answers
0
like
0
dislike
Hidden content!#include<stdio.h>
** * * * * * ** **
#include<math.h>
int main()
{
* * * * * * **** * * a,b,c,d;
* * * * **** * * * * ** ** ** * * * ** * * *
* *** * * * ** * ** * * *
* **** ** *** * * * **** * ** *
** * * ** ** * * * * * *
*** *** * * ** ** ** * * ** *** * * *
* ** * * * * ** *** ** ** * ** 0;
**** * ** * ** * * * * ** *
}
answered
Jan 5, 2017
by
andreas lu
(
-188
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!#include * * * ** *
#include * * * ** * ** ***
#include * * ** ** *
int main(void) {
* * * * * * * * ** * * * x,a;