#include "stdlib.h" #include "iostream.h" int nwd(int a, int b) { if(a % b == 0) { return b; } else { return nwd(b, a % b); } } int main() { cout << nwd(200, 150) << endl; system("pause"); }