fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main () {
  5. int e[5] = {10, 20, 30, 40, 50};
  6. for (int i = 0; i < 100; i++) {
  7. for (int j = 0; j < 5; j++) {
  8. if (e[j] == i) {
  9. cout << i;
  10. break;
  11. }
  12. }
  13. }
  14. }
  15.  
  16. //https://pt.stackoverflow.com/q/336968/101
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
1020304050