Why aren't long double numbers not displayed properly? I'm using MinGw32 4.9.2. For example when a = 56 and b = 3, a is displayed as -2.6815615859885194e+154, b as -3 and the resulting operation is -5.075883675e-116
#include <iostream>
#include <iomanip>
using namespace std;
long double a, b, res;
int main()
{
cout << setprecision(10);
cout << "enter a: ";
cin >> a;
cout << a << endl;
cout << "enter b: ";
cin >> b;
cout << b << endl;
res = a * b;
cout << sum;
return 0;
}