daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Apr 22nd, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. double a, b, c;
  8. cout << "Podaj liczbe neutronow" << endl;
  9. cin >> a;
  10.  
  11. cout << "Podaj liczbe protonow" << endl;
  12. cin >> b;
  13.  
  14. cout << "Podaj mase" << endl;
  15. cin >> c;
  16.  
  17. double x = a*1,0086649 + b*1,0078250-c;
  18.  
  19. cout << "Deficyt masy w unitach -> " << x << endl;
  20. cout << "Deficyt masy w kg -> " << x / 1,66 << "* 10^-28kg" endl;
  21.  
  22.  
  23. return 0;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top