Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout << "TEMA!" << endl;
- cout << "432+432="<<432+432<<endl;
- ///VARIABILE
- int a,b;
- cout <<"a = ";
- cin>>a;
- cout <<"b = ";
- cin>>b;
- cout<<a<<"+"<<b<<"*"<<a<<"-"<<a<<"="<<a+b*a-a<<endl;
- cout<<a<<"+"<<b<<"-"<<a<<"/"<<a<<"="<<a+b-a/a<<endl;
- cout<<a<<"*"<<b<<"*"<<a<<"-"<<a<<"="<<a*b*a-a<<endl;
- cout<<a<<"*"<<b<<"-"<<a<<"+"<<a<<"="<<a*b*a*a<<endl;
- cout<<"("<<a<<"+"<<b<<")"<<"*"<<"("<<a<<"*"<<a<<")"<<"="<<(a*b)*(a*a)<<endl;
- cout<<a<<"-"<<b<<"*"<<a<<"-"<<a<<"="<<a-b*a-a<<endl;
- cout<<a<<"*"<<b<<"*"<<a<<"-"<<a<<"="<<a+b*a-a<<endl;
- cout<<a<<"+"<<b<<"*"<<a<<"+"<<a<<"="<<a+b*a-a<<endl;
- cout<<a<<"-"<<b<<"*"<<a<<"*"<<a<<"="<<a+b*a-a<<endl;
- cout<<a<<"*"<<b<<"*"<<a<<"*"<<a<<"="<<a+b*a*a<<endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement