How to work this code ????
/*C ++ Programming language */ #include <iostream> using namespace std; int main() { int x[10]={1,2,3,4,5,6,7,8,9,10}; /*how to work \/ this for loop I'm not understood this technic...*/ for (int y: x){ switch (y){ case 1:cout <<"S"; case 2:cout <<"A"; case 3:cout <<"T"; case 4:cout <<"Y"; case 5:cout <<"E"; case 6:cout <<"N"; case 7:cout <<"D"; case 8:cout <<"R"; case 9:cout <<"A"; case 10:cout <<" !"; cout<<endl; } } int y[10]={10,9,8,7,6,5,4,3,2,1}; for (int x: y){ switch (x){ case 1:cout <<"S"; case 2:cout <<"A"; case 3:cout <<"T"; case 4:cout <<"Y"; case 5:cout <<"E"; case 6:cout <<"N"; case 7:cout <<"D"; case 8:cout <<"R"; case 9:cout <<"A"; case 10:cout <<" !"; cout<<endl; } } return 0; }