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

66 Answers

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

#include<stdlib.h>

main()

{
** ** * * **** * * ** * **** w=0,l=0;
* ** * * * ** ***** **** *** **** ** ** ** ** * * input height(cm):");
**** ** *** * ** * *** * * * * * * ** ** *** *
** * * ** **** ** ** *** * ** * * * * *** input weight(kg):");
** * * * * ***** * * *** *** ** * **** ** * ***** *
* ** ** **** * ** * **** **** ** * *** *** * *** * ** * * *
* * *** * ** **** * ***
* **** *** * * * ***** * * *** * * * * *** **** * **
*** * ** * * ** *** * * * ** 0;

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



main()

{
** *** * * * * * ** * ** * w = 0 , h = 0 , bmi = 0 ;
** * * ** * ******** * ** *
* ** * **** * ** ** * * * * ** input Weight(Kg): Kg ");
*** * *** **** * ** * * *** * ** * *** * , &w );
**** ** * *** ** * ** ** **** * ** input Height(m): m ");
******* * ** * * * * * * * , &h);
* ** ******* * * * * *
*** ** ******* *** *** ** w / (h*h) ;
* ** * * * ** * *
***** ******** ****** ** ** *** ** = %f " , bmi  );
* ******* * ** * ***
** ** * *** * * * **** ** * *** ** * **** * ** **

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

#include <stdlib.h>



main(){
* ** ***** * *** ** ** *** ** * * * *** ** * * weight = 0 , height = 0 , bmi = 0 ;
* * ** * ** * * * ** *** ** * * *
* ***** ** * * * * ** *** **** ** *** *** weight(kg):");
* * *** * ** * * ******** ***** * * * ******* * ****** *
** * ** * ** **** * * * * * ** *** * height(m):");
* * * **** * ******* **** **** * ********* **** * * *** * *
**** * * * ***** * * ** **** * * = weight/(height*height);
* * *** * * * ** ** ** * * *** ** *** * **** ** BMI:%.2f\n",bmi);
* * ***** * * ***** * *** * *
* * **** * ***** * * **** < 18.5)
* * ******* ***** ***** * **** * * * * * * * * * *** * ** * ** * * **** *


* * *** * * **** *** ** * * * * if(bmi >= 18.5 && bmi < 25 )
*** * * * * * * ** ** * * * ** * ****** * ** ** ** *** *** weight\n");


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


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

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

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

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

#include <stdlib.h>

main()

{
* ** * * **** ** * * * * t=0 ,w=0 ,B=0;
* *** * ** ** * ** ** ****
* **** * **** * * **** ** *** ** *** * **** *
** ** * * * *** ** ** * * * * * ** * * ***
***** * * * *** * ** *** * ** * * * *** *****
** * ** * * ** ******* *** * * * ** * ** *** *

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

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

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

#include <stdlib.h>

main(void)

{
* * *** ** ****** * ***** * * * * ****** **** * * mass=0,
* * * ** ** ***** **** ******* ** * ** * * ** ** * ** ** ** * * ******* ** **** **** * ****
* * * * ** *** *** * ****** * **** ** * * *** *** ** * * * * ** ** * * ** ** *** ** **
******* *** ** * ******** *** * * * * ******* ** * ** *** * ** ** your weight(kg) : ");
* ******** * ** ** *** * * * * ** * * **** * ** *** ** ** * * ****** ** * *
**** *** ** * ** * * ** ** * * ** ** * * * ****** ** **** **** ** your height(m)  : ");
* * * ** *** * **** ** ** * * * * * * * ** ** * ** ** ****** * **** ** * * *
** * * * * ****** * * * * ******* **** ***** **** *** *
** *** * *** * ** **** ** ** ***** * * * *** *** ** ** *** = mass/height/height;
********* *** ** ** ** * *** * ** * **** ** * *** ** * ** ** Weight = %.2f(kg), Height = %.2f(m), BMI=%.1f \n",mass,height,bmi);
* * * **** * * * * **** *** * * ** *** ** * ********* ** ** **** *
** **** ** * ** ** * ** ** * *** ** ** ** * * ** * * *** ** 0;

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

Related questions

0 like 0 dislike
47 answers
[Exercise] Essay (Open question) - asked Sep 22, 2016 in 作業 by Shun-Po (18k points)
ID: 11533 - Available when: Unlimited - Due to: Unlimited
| 2.2k views
0 like 0 dislike
26 answers
[Exercise] Coding (C) - asked Nov 3, 2016 in 作業 by Shun-Po (18k points)
ID: 16957 - Available when: Unlimited - Due to: Unlimited
| 1.3k views
0 like 0 dislike
37 answers
[Exercise] Coding (C) - asked Oct 20, 2016 in 作業 by Shun-Po (18k points)
ID: 14579 - Available when: Unlimited - Due to: Unlimited
| 1.7k views
0 like 0 dislike
67 answers
[Exercise] Coding (C) - asked Oct 13, 2016 in 作業 by Shun-Po (18k points)
ID: 13427 - Available when: Unlimited - Due to: Unlimited
| 2.7k views
0 like 0 dislike
73 answers
[Exercise] Coding (C) - asked Sep 29, 2016 in 作業 by Shun-Po (18k points)
ID: 11603 - Available when: Unlimited - Due to: Unlimited
| 3k views
12,783 questions
183,443 answers
172,219 comments
4,824 users