Homework: must be of solve in the lab(14/1/2013)

Post date: Jan 14, 2013 6:20:09 AM

HW1):  write program to c++ to read three numbers from keyboard and find the average of the three numbers?

HW2): write program  c++ to read two numbers from keyboard and  swap between numbers like x=4; y=6; the result x=6; y=4;?

HW3): print the result x if x=  ?

HW4): must be the result of positive example: (x+(-y)=z)?

Hw5):    values for each of  : X=  ;y=  ;z=  ;

 int x=0,y=0,z=0;

 

x=++y + ++z;                             //x=          ,y=       ,z=     ;

 

x=y++ + z++;                                 // x=           ,y=       ,z=     ;

 

x=++y + z++;                            // x=           ,y=       ,z=     ;

 

x=y-- +--z;                                    // x=           ,y=       ,z=     ;

x=y-- +--z;                              // x=           ,y=       ,z=     ;