Is it possible to put a for() loop inside a switch statement?
Code:#include <iostream> #include <stdlib.h> #include <string> using namespace std; int main() { for (int i=0; i < 8; i++) { switch (i) { case for (int j=0; i < 6; j++): //something like this? cout<<"1-6"<<endl; break; case 7: cout<<"7"<<endl; break; } } system("pause"); return 0; }