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

This note was uploaded on 02/23/2011 for the course CHEMICAL E 2 taught by Professor Hibasaadeh during the Spring '11 term at University of Jordan.

Ask a homework question - tutors are online