Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int WARTOSC_BEZWZGLEDNA(int a)
- {
- if(a<0)
- {
- a = -1 * a;
- }
- return a;
- }
- int main()
- {
- cout << WARTOSC_BEZWZGLEDNA(5) << endl;
- cout << WARTOSC_BEZWZGLEDNA(-19) << endl;
- cout << WARTOSC_BEZWZGLEDNA(0) << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment