#include<iostream.h> void main (){ int a,b,c,d,max,min; cout<<"Nhap vao 4 so :"; cin>>a>>b>>c>>d; max=a; if(max<b)max=b; if(max<c)max=c; if(max<d)max=d; cout<<"So lon nhat la :"<<max<<endl; min=a; if(min>b)min=b; if(min >c)min=c; if(min>d)min=d; cout<<"So nho nhat la :"<<min; }