Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- float x;
- int main()
- {
- cout << "wprowadz liczbe: " << endl;
- cin >> x;
- if (x < 0) cout << "wartosc bezwzgledna liczby " << x << " to: " << -x << endl;
- else cout << "wartosc bezwzgledna liczby " << x << " to: " << x << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment