#include<iostream>
using namespace std;
int main()
/*{
    int a,b;
    cout<<"Enter The Value of A and B : "<<endl;
    cin>>a>>b;
    cout<<"The addition is : "<<a+b<<endl;
    cout<<"The subtraction is : "<<a-b<<endl;
    cout<<"The multiplication is : "<<a*b<<endl;
    cout<<"The division is : "<<a/b<<endl;
    cout<<"The modulo is : "<<a%b<<endl;
    return 0;
}*/
{
    int x=10;
    int y;
    cout<<"The value of x before:"<<x<<endl;
    cout<<"The value of y before:"<<y<<endl;
    y=--x;
    cout<<"The value of x after:"<<x<<endl;
    cout<<"The value of y before:"<<y<<endl;
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: