# include <iostream.h> void main(){ int n ,i; int a[100]; cout<<"nhap vao so phan tu "; cin>>n; for (i=0;i<n;i++){ cout<<"phan tu a["<<i<<"]="; cin>>a[i]; } int max,min; max=min=a[0]; for(i=1;i<n;i++){ if(a[i]>max)max=a[i]; if(a[i]<m in)min=a[i]; } cout<<"so lon nhat se la : "<<max<<endl; cout<<"so nho nhat se la : "<<min; }