DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CPP
cpp code for euclids GCD
int gcd(int a,int b) { int R; while ((a % b) > 0) { R = a % b; a = b; b = R; } return b; }
Source by www.freecodecamp.org #
PREVIOUS
NEXT
Tagged:
#cpp
#code
#euclids
#GCD
ADD COMMENT
Topic
COMMENT
Name
7+3 =
Submit