fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double a;
  6. double b;
  7. double c;
  8.  
  9. a = 100000000000;
  10. b = 0;
  11. c = a/b;
  12. cout << c << endl;
  13.  
  14. a = 5.13e+363;
  15. b = 4.76e+116;
  16. c = a*b;
  17. cout << c << endl;
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
inf
inf