fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double a = 5.123e-1 * 4.987e2; // 5.123 * 10^-1 * 4.987 * 10^2
  6. double b = 5.123e-1 + 4.987e2; // 5.123 * 10^-1 + 4.987 * 10^2
  7.  
  8. cout << "Wynik a = " << a << endl;
  9. cout << "Wynik b = " << b << endl;
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5328KB
stdin
Standard input is empty
stdout
Wynik a = 255.484
Wynik b = 499.212