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

posted Jan 13, 2013, 10:20 PM by Media Zaxo   [ updated Jan 13, 2013, 10:20 PM by Karwan Jacksi ]

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=     ;