fork download
  1. #include <stdio.h>
  2. int main() {
  3. int w,a,BMI;
  4. scanf("%d",&w);
  5. scanf("%d",&a);
  6. BMI=w/(a*a);
  7. if(BMI<18.5){
  8. printf("痩せすぎ\n");}
  9. else if((BMI>=18.5)&&(BMI<25)){
  10. printf("標準体型\n");}
  11. else if(BMI>=25){
  12. printf("太り気味\n");}
  13. else if(BMI>=35){
  14. printf("肥満\n");}
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. return 0;
  22.  
  23. }
Success #stdin #stdout 0.01s 5316KB
stdin
173,70
stdout
痩せすぎ