#include #include using namespace std; int main() { int nWybor; int licznik; int nLiczba; int i; int wykladnik; cout<<"Program testowy. [1]For, [2]Do/While, [3]While :\n"; cin>>nWybor; switch(nWybor) { case 1: cout << " Program wystukal liczby od 1 do 10:\n"; for(int a=1;a<=20;a++) { if(a==11) break; cout<> nLiczba; } while (nLiczba <= 10); cout << " Brawo \n"; break; case 3: int ile ; cout << "Ile gwiazdek ma miec kapitan ? : " ; cin >> ile ; // petla while rysujaca gwiazdki while(ile) { cout << "*\n" ; ile = ile - 1 ; } break; default: cout<<"To nie jest ocena\n"; } getch (); return 0; }