fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a[10];
  6. int i, min;
  7. cout<<" \n";
  8. for (i = 0; i < 10; i++)
  9. {
  10. cin>> a[i];
  11. }
  12.  
  13. for (i = 0; i < 10; i++)
  14. {
  15. if (a[i] > 0 && a[i]<6)
  16. cout<< a[i];
  17. }
  18. cout<<"Масив: \n";
  19. for (i = 0; i < 10; i++)
  20. {
  21. cout<<a[i]<<endl;
  22.  
  23. }
  24. return 0;
  25. }
Success #stdin #stdout 0.01s 5432KB
stdin
1
2
3
4
5

stdout
 
12345Масив: 
1
2
3
4
5
32767
-1616727147
21852
709565216
5293