CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Created Cabdiraxmaan khaliif
/* Calculate your BMI or your body mass index as Weight for kg and height for m
*/
// weight as Kg
// height as cm ex = 180 cm => 1.80m
#include <iostream>
using namespace std;
int main() {
cout << " ★★★ 𝐁𝐌𝐈 𝐂𝐀𝐋𝐂𝐔𝐋𝐀𝐓𝐎𝐑 ★★★ \n";
float weight , height, bmi;
cout << "Enter Your Weight and Height"<<endl;
cin >> weight >> height;
cout << "Weight is : " << weight <<"\n" <<"Height is : " << height <<endl;
bmi = weight / (height * height )*10000;// height to be cm
if (bmi < 18){
cout<<" You are Underweigh 😔\n";
}
else if(bmi>25){
cout<< "You are Overwight 😄😄😄\n";
}
else{
cout <<"you are Normal 😍\n";
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Uruchom