Toggle navigation
Courses
Questions
Tags
Users
AD practice 4
0
like
0
dislike
3.1k
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
|
3.1k
views
comment
Please
log in
or
register
to add a comment.
21
Answers
0
like
0
dislike
Hidden content!*** * * * * * * * *
int ** {
float A,B;
* * * * ** * **** ***** **
* * * ** * *
*** * ** * ** * ** ** * *
* 0;
}
answered
Oct 24, 2016
by
chen
(
-102
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!#include <stdio.h>
#include ** * * ***
int main()
{
** * * * ***** * * * * ** ** length = 0 ;
** * ** * * *** * * ** ** * ***** * *** *** * * * ** *
* * * ** * * ****** * ** **** * ** * * **** **** * **** *** * *
** * * ** * * * ********
* * * * * **** * * * * * * ** **** *** ** *
* *** * * * * ** * ** 0;
}
answered
Oct 22, 2016
by
Phoenix666
(
-162
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!#include<stdio.h>
#include<stdlib.h>
int main()
{
* * * * ** * * * **** * * * i = 0;
* * * * **** * * * ** * * * * ** k;
* * * * ** * * ** * * ** ** **
* ** * * *** ** *** * ** ** * *** * * * * * *
* ** * * *** * * *
** ** * * * * * ** * **** * * / 4 * (i * i);
* *** *** *** ** * * * * ** *
** * * * * * * * * ** * * ** * *** * *
* * * * ** *** ** * ***
* * * ** * **** *** *
* ** ** * ** * ** * * *