(8 pts) Consider the following C codes to compute the gcd of twointegers.
/// code 1
#include <stdio.h>
int gcd(int a, int b) {
while (a != b) {
if (a > b) a = a – b;
else b = b – a;
}
return a;
}
/// code 2
#include <stdio.h>
int getint() {
int i;
scanf(“%d”,&i);
return i;
}
void putint(int i) {
printf(“%dn”,i);
}
int main() {
int i = getint(), j= getint();
while (i != j) {
if (i > j) i = i %j;
else
PayPal Gateway not configured
PayPal Gateway not configured