I am in learning of c++ and i had absolutely no problem with decimals until now, ill show the code.
#include <iostream>
using namespace std;
int p,e,i;
int main()
{
cin >> p;
cin >> e;
i=p/(e+e);
cout << i;
if (i>24);
else
cout << " Normal";
if (i<25);
else
cout << " Overweight";
}
p= weight of the person e= height of the person i= body mass index
What could i do to see decimals again :(