fork(1) download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. int main() {
  5. double a = 5.123 * pow(10, -1);
  6. double b = 4.987 * pow(10, 2);
  7.  
  8. double iloczyn = a * b;
  9. double suma = a + b;
  10.  
  11. std::cout << "Iloczyn: " << iloczyn << std::endl;
  12. std::cout << "Suma: " << suma << std::endl;
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
Iloczyn: 255.484
Suma: 499.212