int gcd(int a,int b){
if(a==0 || b==0) return (a+b);
else if(a>=b) return gcd(a-b,b);
else return gcd(a,b-a);
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter