ZateRok
May 21st, 2023
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int x, y, z ;
  7. cin >> x >> y >> z;
  8. int r = x + y;
  9. if ((x + y) != z){
  10. cout << "Error. The sum of "s << x << " and "s << y << " is "s << r << endl;
  11. }
  12.  
  13. }
  14. // теперь и мой прошел
Advertisement
Add Comment
Please, Sign In to add comment