#include<iostream.h>
#include<conio.h>
void main()
{
                int x=5,y=5,p,q;
                clrscr();
                p=++x + x++ + ++x;
                q=y++ + ++y + ++y + y++;
                cout<<"P : "<<p<<endl;
                cout<<"Q : "<<q<<endl;
                cout<<"X : "<<x<<endl;
                cout<<"Y : "<<y<<endl;
                getch();
}

77.PNG

Advertisements