fork download
  1. // Source: https://u...content-available-to-author-only...o.guide/general/io
  2.  
  3. #include <bits/stdc++.h>
  4. using namespace std;
  5. using ll = long long;
  6. int main() {
  7. float w, h;
  8. float bmi = w / (h * h);
  9. cout << bmi << endl;
  10. if (bmi < 18.5) cout << "Thieu can";
  11. else if (bmi >= 18.5 && bmi <= 22.9) cout << "Binh thuong";
  12. else cout << "Thua can";
  13. }
Success #stdin #stdout 0s 5316KB
stdin
55
1.65
stdout
-nan
Thua can