#include #include using namespace std; void czysc(); double potega(int x,int y); int main(int argc, char *argv[]){ int x,y; char z; while(true){ czysc(); cout<<"Podanie liczby ujemnej konczy program\n"; cout<<"Podaj wartosc podstawy x="; cin>>x; cout<<"Podaj wartosc wykladnika y="; cin>>y; if(x>=0 && y>=0){ cout<>z; } system("PAUSE"); } void czysc(){ system("cls"); } double potega(int x,int y){ if(y==0) return 1; else return potega(x,y-1)*x; }