#include #include using namespace std; int NWD(int x, int y); int main(int argc, char *argv[]){ int x,y; cout << "Najwiekszy Wspolny Dzielnik dla liczb dodatnich x / y\nPodaj x = "; cin>>x; cout<<"Podaj y = "; cin>>y; if(x>0&&y>0) cout<<"NWD("<y) x=x-y; if(y>x) y=y-x; } return x; }