6. C++ class Cuboid with data members length, breadth, and height. Write necessa ry member functions for the following: I. void setvalues( float,float,float) to setvalues of data members. II. void getvalues( ) to display values of data members. III. float volume( ) calculate and return the volume of cuboid. IV.float surfa ce_area( ) to calculate and return the surface area of cuboid. (Use Inline function)
Answers
Answered by
1
Answer:
Since its AND operator so all the condition should be check until it finds any false statement. Initially y = 10 In 1st condition: y++>9 which is true and y become 11 in next use. In 2nd condition: y++!=10 which is also true and y become 12 in next use In 3rd condition: y++>11 which is also true and y become 13 in next use After that printf statement will execute and print y = 13
Similar questions