Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int x, y, z;
- std::cin >> x >> y >> z;
- if ((x + y) != z) {
- std::cout << "Error. The sum of " << x << " and " << y << " is " << x + y << std::endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement