fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int num, p, ep;
  6. cout << "Dwse arithmo: ";
  7. cin >> num;
  8. p = num - 1;
  9. ep = num + 1;
  10. cout << "Prohgoumenos arithmos: " << p << endl;
  11. cout << "Epomenos arithmos: " << ep << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
Dwse arithmo: Prohgoumenos arithmos: 32765
Epomenos arithmos: 32767