#include <iostream>
using namespace std;
int main() {
int n=10; //assigns value 10 to integer variable n.
cout << "n is "<<n<<endl; //outputs string "n is " followed by 10
n--; //subracts one from n
cout<<"n is now "<<n<<endl; //outputs string "n is now " followed by 9
n++; //adds one to n
cout<<"n is now "<<n<<endl; //outputs "n is now " followed by 10
return 0; //exits program
}
OUTPUT:
[cms-opendata@localhost src]$ ./a.out
n is 10
n is now 9
n is now 10