Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int WARTOSC_BEZWZGLEDNA(int a);
- int main(){
- cout << "wartosc bezwzgledna to: " << WARTOSC_BEZWZGLEDNA(10) << endl;
- cout << "wartosc bezwzgledna to: " << WARTOSC_BEZWZGLEDNA(16) << endl;
- cout << "wartosc bezwzgledna to: " << WARTOSC_BEZWZGLEDNA(-16) << endl;
- cout << "wartosc bezwzgledna to: " << WARTOSC_BEZWZGLEDNA(-20) << endl;
- }
- int WARTOSC_BEZWZGLEDNA(int a){
- return abs(a);
- }
Advertisement
Add Comment
Please, Sign In to add comment