for(i=0; i<5; i++) { switch(i) { case 0: cout << "less than 1\n"; case 1: cout << "less than 2\n"; case 2: cout << "less than 3\n"; case 3: cout << "less than 4\n"; case 4: cout << "less than 5\n";
}
cout << '\n';
}
return 0;
}
less than 1
less than 2
less than 3
less than 4
less than 5
less than 2
less than 3
less than 4
less than 5
less than 3
less than 4
less than 5
less than 4
less than 5
less than 5