CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*•.•*•.•*•.•*•.•*•.•*•.•*•.•*•.•*•.•*\
programmed by :
__ __ ___ _ _ _ __ _ ®©
| \ / |/ \| |_| | / \ | \ | |
| |\V/| | O | _ |/ Δ \| |\\| |
|_| V |_|\___/|_| |_|_/ \_|_| \__|
ALL RYTS RESERVED
\*•.•*•.•*•.•*•.•*•.•*•.•*•.•*•.•*•.•*/
#include<iostream>
using namespace std;
int main() {
int arr[] = {1, 3, 5, 7, 9};
cout << "showing each element of the "
<< "array using new for loop:\n";
for(auto ele: arr)
cout << ele << endl;
cout << "..dont forget to do an "
<< "upvote :)";
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run