Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a;
  5. cin >> a;
  6. cout << "The next number for the number " << a << " is " << a + 1 << endl;
  7. cout << "The previous number for the number " << a << " is " << a - 1 << endl;
  8. return 0;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement