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

121 Answers

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

#include ***** * *



main ()

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


*** * * * * **** ** ***** * * input your ** ***** **
* ** * * * **** **** * * ** * * &height);
* ** * *** * * ****** * input your * * * * *
* *** * * * * *** ** &weight);
* * * * * * / * ** ***** * ;
** * * * * **** * * height:%.1fcm, * * * * * * * * *** *
**** * * * * **** * ** * * ** is **** * ****
** *** * * ** * ** * * **** *



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

#include <stdlib.h>

main()

{
* * *** * * ** ** * **** * ** * * * weight=0, height=0, bmi=0;
**** *** * * * * ***** *** *** * ** ** * * * input your *** ** * * ** **
*** ** * ** * ** * * * * * * * *** *
* * * * * ** **** **** * **** *** * * **** * * input your height(m):\n");
* **** * * * * ***** * *** ** *** * * * ***
* ** ** *** * ** ** ****** ** ** **** *** ** *** *
** *** * **** ** * ** * ** * * **** ** * *** * ***** ** **
* * ** * * *** ** ****** **** ***** * * ***** *

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

main()

{
*** **** * * ** * * *** * * * your * * **** * *
* * ** * ** * * * ****** *** your height(m)\n");


* * ** *** w=0,h=0,bmi=0;
**** **** * ** *** ****** *** * **** *
** * *** *** * **** *** ** * ****** ****
* * **** * * ** ** ** *
** * *** * * ** * * ** bmi is %.2f\n",bmi);


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



 



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

main()

{
* * * ** * * ***** **** * ** *** h=0,w=0,b=0;
*** ** **** **** * ** * ** ** ** * * * * ** * your height(m):\n");
*** ** ** * ** ** ** * *** ** ** ** ** * **** *****
** ** ** ** * ** * * **** * * ** your weight(kg):\n");
** ** * * * * * * * **** ** * ** * * * *** * *** ** * **
* ***** ** ** * *** * *** *** * * **
* * * * * * ** * * *** * ** * *** * * BMI=%f\n",b);
*** * *** * ** * ** ** * ** * ** *** ** * *

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

#include * * ** ** **

main()

{
***** *** *** ** * ** W=0, h=0, BMI=0;


** * *** ** ** ** ** * ** *** * * * ***
** **** *** ** * * ** * * * *** *
* * *** ** * * *** * ****** &W);
* **** * ********* ** * * * * ****
* ** ** ****** ** * *** * * * ***** **
** * * **** *** * **** **** *** * &h);
* *** *** ** * * = W / ((h/100)*(h/100));
* ** * * * * * * ** * * ** * * * * * ** * *** * * * *** * **** W, h, BMI);

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

#include * ** *** *



main()



{


* * * **** * * ** weight, tall ,BMI;


** **** ** ** ***** *** * *** * * * * * **
*** *** *** **** ** ***** ** , * * **
* * ** * ** *** ** * * *** * * **
** ** * * *** ** * * ** **** , &tall);
** * * * * ** * * * ** ** **** **** **
* ** * ** *** * * ** *** * * ****** * );



 



 



 



}
** * * * * *** * ** *** ** * * *** *** ** * * * * ***  */
answered by (54 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

main( )

{



   float w=0,h=0,bmi=0;
* ** *** * ** ***** *** ** ** ** *** * * * * **
* ** * * * **** * * * * * ***
*** ** ** *** ** *** ** * * ** **** * *
* * **** **** ** * ** * ** * *** **** * * ***** *
** ** * * ** * * * * * * *


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



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

main()

{
* * * ** * * **** * ** ** ** weight,height,bmi;


* * *** * ***** * * *** ** * *** * ** * * enter weight(kg): ");
** * *** * * * * * **** ** ** *** * * * * * * *** &weight);


* * *** ** *** * * **** **** ** ** * ** **** enter * ****** ** *
** ** * ** ** * ** * **** ** *** * ** *** **** * *** * ***
* * * **** * ** ** * ** * *** ** * ** ***
* ** * * * ** ** * * * * * ** **** weight =%f\n your height=%f\n *** ***** * * *



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



main()

{
**** * ** * * ***** height, weight, bmi;


* *** * * ** *** * *** enter your ** * *****
*** *** * ******* ** * * * *** **


** * * ** * ** * * * ** * * * * * enter your ** * ** ** **
**** * * * ** ** *** ** ** *** * **** * * ****


* **** * * * ****** *** = weight / ( ** * **** * );
**** * **** * * * * * * * ** ** *** * ** *** * * * * *** * weight, height, bmi);



}
answered by (-64 points)
0 like 0 dislike
Hidden content!
#include
main()
{
float * ** **
*** * * *** * ** ***** *
* ***** **
* *** * ****** * *
*** *** ** *** * *
bmi=w / * * * *
* ** ** ** *
***** * **** * * *** ** * * *


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

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
| 13.2k 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
| 7.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
| 15.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
| 13.5k 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
| 15.8k views
12,783 questions
183,442 answers
172,219 comments
4,824 users