0 like 0 dislike
7.1k views
請撰寫一個程式,請使用者輸入身高體重後計算出使用者的BMI值並顯示於螢幕上
[Exercise] Essay (Open question) - asked in 作業 by (18k points)
ID: 11340 - Available when: Unlimited - Due to: Unlimited
| 7.1k views
0 1
Called for Help

121 Answers

0 like 0 dislike
Hidden content!
* ** ** * *
{ float a = 0;
float b = 0;
** **** **** ** ** *****
* * * * *** *
* * * *
** * * ** * ** **
* ** = ** * * * ***
* * *** *
}
answered by (-140 points)
0 like 0 dislike
Hidden content!
#include ** ** *** * *

main( )

{
* *** **** * * *** * * *** , w=0 , bmi=0 ;
* ** ** ** * * * ** * * * ** * * **
* * ****** * * ** * * * ** *** &h);
** ** * ** **** * * * * *** * ** ****
* * * ** * *** *** * * * * * &w);


* * ** * * *** * * ** * * *** * * * * ***** ***
* * **** **** ** *** * weight=%.1f(kg) * * * *


** ** ***** ** * = w /( ** ****** );
* ** * ** * * **** *** **** BMI = %.2f = %.2f / %.2f" **** *

}
answered by (-88 points)
0 like 0 dislike
Hidden content!
* ** *
* *
** *
{
float tall=0, * * * ***

**** * * * * * ***
*** * ** *** * *** *

* * ****** *** ** ***
* * * ** * ** *** * ***

bmi = weight / * * ** * * * *
** * * ** **
** *** *
}
answered by (-143 points)
0 like 0 dislike
Hidden content!
** *
***
** **
{
float tall=0, ** * * ****

* ** ***** ****
* * ****** ** **** ** *

* * * ** *
***** ** * *** ******

bmi = weight / ** ** * * **
* * *** *** *
** * * *** **
}
answered by (-143 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include ***** ** * **



main()

  {
**** * **** ** ** * *** **** * * ** w,h,BMI;
**** ** * ** * * *** * ** * * your ** * *** ***
**** * * * * * ** * * **** * * ** * * * ** ****
* * * ** *********** * * * *** * ********** your height(cm).");
* ** ** * * ****** * ** * ****** * * * ** * *
** ** * ****** * * * * *** *** ** ** *
*** ********* *** ** *** ***** *** * BMI is %.2f.",BMI);


** ** * ** * * ** * ***
answered by (-157 points)
0 like 0 dislike
Hidden content!
#include * **** * ***

int main( )

{
** * ** *** * * h, w, bmi;
*** * * **** ** ** * *** * ** * ** ** ** **
***** ***** * * * ** ** ** **** ** &h);
* ** * ** ** * * ***** * ** ******* **** ***
* ***** * * *** * * *** **** &w);
**** *** ***** * ** * * **
** * ** ** **** ** ** * * ** * \nweight=%.0f ** **** *** ,w , bmi);

}
answered by (-162 points)
0 like 0 dislike
Hidden content!
* **
*
*
{
** t, bmi, w;

* *** * ** * * ** * *
* ** * * ** * * * *

* * ** * * **** *
* * ** *** *** **

bmi = w / * * * **
* * * *** ***** ***

* * **** *
}
answered by (152 points)
0 like 0 dislike
Hidden content!
*****

**
{
** ** * w=0 **
*** ** * * * *** ***
**** * * * ** * ** *
** ** ** * ****** ****
** **** ** ** * *
bmi * ** * * *
* ** *** * ** * *** *
}
answered by (-52 points)
0 like 0 dislike
Hidden content!
* *
******
*
{
* ** t, bmi, w;

* *** * ** **** *
** *** * * * ** **

**** *** **** *** *
** * * * * * * * *

bmi = w / ** * *
*** * *** ** **

* *** * *** * *****
}
answered by (152 points)
0 like 0 dislike
Hidden content!
******

* * *
{
* * w=0 *
****** **** **
* * ** *** * *
** ** * * * * * *
**** * ** *
bmi ** *** *
* * ** *** ** ****
}
answered by (-52 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.100.39
©2016-2025

Related questions

0 like 0 dislike
99 answers
[Exercise] Essay (Open question) - asked Sep 21, 2016 in 作業 by Shun-Po (18k points)
ID: 11341 - Available when: Unlimited - Due to: Unlimited
| 6k views
2 like 0 dislike
44 answers
[Exercise] Coding (C) - asked Nov 2, 2016 in 作業 by Shun-Po (18k points)
ID: 16861 - Available when: Unlimited - Due to: Unlimited
| 3.5k views
1 like 0 dislike
129 answers
[Exercise] Coding (C) - asked Oct 19, 2016 in 作業 by Shun-Po (18k points)
ID: 14119 - Available when: Unlimited - Due to: Unlimited
| 7.9k views
0 like 0 dislike
117 answers
[Exercise] Coding (C) - asked Oct 13, 2016 in 作業 by Shun-Po (18k points)
ID: 13581 - Available when: Unlimited - Due to: Unlimited
| 6.7k views
0 like 0 dislike
131 answers
[Exercise] Coding (C) - asked Oct 5, 2016 in 作業 by Shun-Po (18k points)
ID: 12291 - Available when: Unlimited - Due to: Unlimited
| 7.5k views
12,783 questions
183,442 answers
172,219 comments
4,824 users