Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a1, b1, c1, a2, b2, c2, v1, v2;
- cout << "Iveskite matmenis a1, b1 ir c1: "<<endl;
- cin>> a1 >> b1 >> c1;
- cout << "Iveskite matmenis a2, b2 ir c2: "<<endl;
- cin>> a2 >> b2 >> c2;
- v1 = a1+b1+c1;
- v2 = a2+b2+c2;
- if (v1-v2+v1<v2-v1-v1) cout <<"Pirmoji telpa antrojoje"<< endl;
- else if (v1-v2+v1>v2-v1+v1) cout <<"Antroji telpa pirmojoje"<< endl;
- else if (v1==v2) cout <<"Abi vienodu matmenu"<< endl;
- else cout << "Nepalyginamos" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement