Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main(){
- /*double a,b,sum,sub,div,mul;
- cout<<"Enter 2 values:";
- cin>>a>>b;
- cout<<"a="<<a;
- cout<<"\nb="<<b;
- sum=a+b;
- sub=a-b;
- mul=a*b;
- div=a/b;
- cout<<"\na+b="<<sum;
- cout<<"\na-b="<<sub;
- cout<<"\na/b="<<div;
- cout<<"\na*b="<<mul;
- cin.get(); cin.get();
- return 0;}*/
- /*double a,b,c,P;
- cout<<"Enter a,b and c:";
- cin>>a>>b>>c;
- P=(a+b-c)/2;
- cout<<"P="<<P;
- cin.get(); cin.get();
- return 0;}
- double a,b,c,R;
- cout<<"Enter a,b and c:";
- cin>>a>>b>>c;
- R=sqrt(pow(a+b,3))+pow(a,7)-c;
- cout<<"The result Is: "<<R;
- }*/
- double x,y,a,b,c;
- cout<<"Enter The Values of a, b and c:";
- cin>>a>>b>>c;
- x=(a+b)*3+pow(c,5);
- y=(sqrt(a)+3)/6;
- cout<<"the value of x: "<<x;
- cout<<"\nthe value of y: "<<y;
- cin.get();
- cin.get();
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement