Tue Oct 12 2021 02:32:05 GMT+0000 (UTC)
Saved by @code_ea
#include <iostream> #include <limits.h> using namespace std; int gcd(int a, int b) { if(b==0) return a; return gcd(b, a % b); } int main() { int a = 12, b = 54; cout<<gcd(a, b); return 0; }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments