• 코드:
​x
 
1
#include <iostream>
2
using namespace std;
3
​
4
int main(void)
5
{
6
    int arr[5] = {1, 3, 5, 7, 9};
7
        
8
    for (int element : arr)
9
    {
10
        cout << element << " ";
11
    }
12
    return 0;
13
}
표준입력 & 실행옵션