Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- int calcGCD (int value1, int value2) {
- if (value2 == 0) {
- return value1;
- }
- else {
- return calcGCD(value2, (value1%value2));
- }
- }
- int main() {
- printf("%d\n", calcGCD(700,350));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement