lorex556
#include <iostream>#include <cmath>#include <cstdio>using namespace std;int n;int main () { cin >>n;cout <<"The next number for the number " << n <<" is " <<n+1 << '\n';cout <<"The previous number for the number " << n <<" is " <<n-1;return 0;}
Answers & Comments