fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int FPB(int a, int b) {
  5. if (a % b == 0) {
  6. return b;
  7. }
  8. else {
  9. return FPB(b, a % b);
  10. }
  11. }
  12. int main() {
  13. cout << FPB (16, 32);
  14. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
16