i am trying to print in standard notation but it keeps printing in scientific notation. here is the coding.
i am trying to getCode:#include <iostream> using namespace std; int main() { long double no1, no2, ans; char ch1; cout << "Enter an equation:"; cin >> no1 >> ch1 >> no2; if (ch1 == '+') { ans = no1 + no2; } if (ch1 == '-') { ans = no1 - no2; } cout<<ans<<endl; return 0; }
123456789012345678901234567890 + 12345678901234567890
as the input to output
246913578024691357802469135780