Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- double a, b, c;
- cout << "Podaj liczbe neutronow" << endl;
- cin >> a;
- cout << "Podaj liczbe protonow" << endl;
- cin >> b;
- cout << "Podaj mase" << endl;
- cin >> c;
- double x = a*1,0086649 + b*1,0078250-c;
- cout << "Deficyt masy w unitach -> " << x << endl;
- cout << "Deficyt masy w kg -> " << x / 1,66 << "* 10^-28kg" endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement