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

66 Answers

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

#include ***** ***

int main(void) {
** * * * * ******** * * w,h,bmi;
* * ** * ****** * *** ** *** **** your height(m) and *** ***** *
*** * ** ** ** ** ** ** * **** * *** * * * ** *
** ***** * * w/(h*h);
*** *** * * * * ** * *** * BMI is ***** *
** ** ** * ****** * *** * EXIT_SUCCESS;

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

main()

{



float ** *
* * ***** *********** * *** );
***** * * ******* * );
* * *
* ***** ** * ** * **

return 0;

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



#include <stdlib.h>



 



int main(){


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


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


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


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


* **** * * ** ** ** * * ** * * * ** ***** **** height(m):");


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


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


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


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


* ** *** * * * ** ** * * * * < 18.5)


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



 


* * **** * * ***** ** ***** * * * if(bmi >= 18.5 && bmi < 25 )


* * * ** * * * **** *** ** ** * ***** ** ** ******** * * ***** *** * * **** weight\n");



 


** *** * *** * ** ** * *** ** if(bmi >= 25 && bmi < 30 )


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



 


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



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


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


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


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


* * *** *** ***** * *** ******** * ** * 0 ;



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



int main()

{

float ** * * *
* * *** ** ** ** **
** * ** * * * ***** * *

bmi = * ** * ****
* ** * * = * * *** * bmi);


*** 0;



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


* **



int *

{
*** * bmi=0;
* * ** * ** *** * *
* **** * *** ** *

bmi = * * * *** * ** *
* * * * * * * = *** * * * bmi);


*** 0;

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

******



main()

{
* * ** * **
* * * * ** * * * **** *****
* * * ***** input body * * *** * *****
* ***** * * * * ***

bmi = * * * * ** *
**** * *** = * * * ** bmi);


* * 0;

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

int main()

{
**** *** **** ****** w,h,bmi;
* * ** *** ** ** **** * * ** * ******
* ** ***** **** *** * **** **** **** *
* * *** *** ** * ***
* ***** ** * ***** * * is%.2f",bmi);


*** * ** * *** * * ** 0;



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

int main()

{
**** ***** * ** ** *** w,h,bmi;
**** *** * ** *** *** ** * * *** * ** *
***** *** * * ** *** ** **** *
** * ** ***** * * * **
* ** * * **** ** ** *** * ** * **


* *** ** * * * * * * 0;



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

int main()

{
******* *** **** w,h,bmi;
* ** ** **** **** ** ** * ***
* *** * ** ** ** * ** *** * *** * *
* *** * ** * * * * * * ** *
* *** *** ** ** ** * * * * **


* * * * *** * * * 0;



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

int main()

{
** * **** ** * ** * w,h,bmi;
*** **** *********** ** *** ** **
* * * * ** ** * * *** ** * * * * *
*** *** **** * * * * * *
***** * ** ** **** * ** * * ** ***** **


** ******* * * ** * 0;



}
answered by (-190 points)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.68.65.36
©2016-2018

Related questions

0 like 0 dislike
47 answers
[Exercise] Essay (Open question) - asked Sep 22, 2016 in 作業 by Shun-Po (17.9k points)
Available when: Unlimited - Due to: Unlimited
| 69 views
0 like 0 dislike
26 answers
[Exercise] Coding (C) - asked Nov 3, 2016 in 作業 by Shun-Po (17.9k points)
Available when: Unlimited - Due to: Unlimited
| 42 views
0 like 0 dislike
37 answers
[Exercise] Coding (C) - asked Oct 20, 2016 in 作業 by Shun-Po (17.9k points)
Available when: Unlimited - Due to: Unlimited
| 45 views
0 like 0 dislike
67 answers
[Exercise] Coding (C) - asked Oct 13, 2016 in 作業 by Shun-Po (17.9k points)
Available when: Unlimited - Due to: Unlimited
| 44 views
0 like 0 dislike
73 answers
[Exercise] Coding (C) - asked Sep 29, 2016 in 作業 by Shun-Po (17.9k points)
Available when: Unlimited - Due to: Unlimited
| 36 views
2,964 questions
57,158 answers
28,936 comments
938 users