Guest User

Untitled

a guest
Sep 21st, 2019
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data