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

121 Answers

0 like 0 dislike
Hidden content!
#include * ** *** *

main( )

{
*** ** * *** * weight=0, cm=0 ,BMI=0;
** * * * * ** * *** * * ** *
* ***** * * ****** * * *** *** **
* * ** * * * ** * * *** ** ** *
** * ** ** **** * * ** ** ** *
*** * ** = weight /(cm*cm) * ****** *****
* ** ***** **** * = * * * * * );



 



}
answered by (43 points)
0 like 0 dislike
Hidden content!
#include * ** **** * *

main()

{
* * * * ** ****** ** * weight=0, height=0, bmi=0;


*** * * *** * * * ** ** * *
* * * ******* * * * ** ** ** * ** *
** * **** *** * * * ** ****** * *** * * ** *
* *** *** ** ** * * ***** * * * * *
* * * ** *** * = weight / (height*height);
*** ** ** * * * ** *** ** * = %f", bmi);

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



main()

{
****** **** *** * * *** height=0, weight=0 , bmi=0;


* ** * ** ** ** * * * * * * * * *** ** ******
** **** ** * * ** ** * ** * ****** * * &height);
* * **** ** * * ** ** * * ** ** ** * * **** **
* ****** ** * * * * * * ***** * ** * &weight);
* * * * *** ** ** * ** ** = weight / (height / 100 * height / 100);
* * ** ** ** * ** *** * ***** * * * ** *** *



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



main()

{

  float high=0,mass=0,high2=0;
* *** * * ** *** ******* *** * *** ** ** *
** ** **** * *** * ********** *** *
** * ** * *** ** ** * *** * *** *


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


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


** ***** ** * ** * *** * ** kg\n身高:%.0f cm\n * * ** * ** ** *


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

  }
answered by (-122 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>



int main() {
* *** * ** ** ** ****
** * ** ***** * *** *** **
** ** ** * ** * *** * ** hight=0 , wight=0 ,bmi=0;
* ***** ** * * * * ** ** ** * **** * * ** ** **
* *** * ** * * * * * * * &hight);
*** * *** * * ** * * * ** ** ** ** * * * ** * * **
** * **** ** * ** * * **** * * ** &wight);
** * * * ** * * * = hight/100;
* **** * * * * ** **** = wight/hight/hight;
** * ** * * * * ** ** * * **** ** * ** * * * ** * ** ** *  兩位小數
* * ** ******* *

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



main()

{

  float high=0,mass=0,high2=0;
* ** * *** **** *** ** * ****** * * * * *
** * * *** *** ** ** * ** ** * **
** * *** * * ***** * *** * ***


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


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


**** ** ** * * ** * * * kg\n身高:%.0f cm\n *** ********* *** * *


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

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

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



main()

{
** * * * * * * * * high , weigh , bmi ,high2;
** *********** *** * * ** ** ** * *** **** **
** ** ** *** *********** ***** ** &high);


*** * ** ** **** * * ** ** * * * * * ** * *
** ** * ** ** **** * * ** * * ** * *
* * * * **** * * * **** * = high/100;
*** * * * ****** ***** = weigh / (high2 *high2);
** * **** * * * ** * *** * ** * bmi);

}
answered by (-158 points)
0 0
#include<stdio.h>

#include <stdlib.h>

int main ()

{ float weight=0,height=0,BMI=0;

printf("請輸入體重(kg):"); scanf("%f",&weight);

printf("身高(cm):");

scanf("%f",&height);

BMI=weight/((height/100)*(height/100));

printf("BMI=%.2f",BMI);

return 0; }
0 like 0 dislike
Hidden content!
#include ** * **

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



main()

{
* * * * *** ** * * kg, m, bmi;


* *** * ** *** ** * ** * ***** ** **** **
* *** * ****** **** ** ** * * **
*** *** *** ** * * ** * * * * * * ** * *
**** *** ** ** *** * ** **** ** * ** * * *
* * ** * ** ** ** = kg / (m * m);
** *** ** * ** * ** * * * = %f體重 = %f身高 = *** * bmi, kg, m);


**



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

main()
{

float * * bmi=0;

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

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

bmi= * **** * **** **
*** *** *** ***** * ***** * * height, bmi);

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

int main ()

{
* ** ** * ***


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


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


* = ** / **** / 100) * * / **


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


* * *

}
answered by (-216 points)
edited by
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.59.170
©2016-2024

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
| 4.4k 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
| 2.3k 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
| 5.2k 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
| 4.8k 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
| 5.5k views
12,783 questions
183,443 answers
172,219 comments
4,824 users