fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6. int max, i,min;
  7. int tab[10];
  8. cout<<"Podaj 10 elemtow tablicy: "<<endl;
  9. for(i=0; i<10; i++)
  10. cin>>tab[i];
  11. min = tab[0];
  12. for(int i=0; i<10;i++)
  13. if(min>tab[i])
  14. min = tab[i];
  15. cout<<"Najmniejsza liczba to: "<<min<<endl;
  16. system("PAUSE");
  17. return 0;
  18. }
Success #stdin #stdout #stderr 0s 5300KB
stdin
Standard input is empty
stdout
Podaj 10 elemtow tablicy: 
Najmniejsza liczba to: -1403231483
stderr
sh: 1: PAUSE: not found