#include <iostream>
using namespace std;
int main()
{
double d = 4, b, e;
cin >> b;
e = b + d;
cout <<e<< endl;
}
why is my output not coming in double form, when everything I've declared is double? I've already tried typecasting it, but still, it's not working as I want it to work. When I give 4.0 as input, it gives 8 as output but I want it to give 8.0 as the output.