13. MinMax_3 - min=y if(z>max max=z else if(z<min...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 #include<iostream.h> void main() { int x,y,z int min,max i cin>>x>>y>>z c min=max=x if(y>max) max=y else if(y<min)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: min=y if(z>max) max=z else if(z<min) min=z cout<<"max is "<<max<<endl cout<<"min is "<<min<<endl }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online