Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<cmath>
- #include<cstdlib>
- using namespace std;
- void f1(float x,float &x1,float &x2, float &x3)
- {
- x1=abs(x);
- x2=sqrt(x);
- x3=pow(x,2);
- }
- int main()
- {
- float x, x1, x2, x3;
- cout<<"Enter x \n";
- cin>>x;
- f1(x,x1,x2);
- cout<<"x1="<<x1<<endl;
- cout<<"x2="<<x2<<endl;
- cout<<"x3="<<x3<<endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement