Sie sind auf Seite 1von 1

#include<iostream.h> #include<conio.h> void main() { int i,n,small,a; cout<<"How many nos. to enter"<<endl; cin>>n; cout<<"Now enter the nos.

"<<endl; cin>>a; small=a; for(i=1;i<n;i++) { cin>>a; if(a<small) small=a; } cout<<"smallest no. is"<<endl<<small; getch(); }

Das könnte Ihnen auch gefallen