#include<stdio.h>
int GCD(int x,int y){
int z;
while(x%y!=0){
z=x%y;
x=y;
y=z;
}
return y;
}
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int d=GCD(a,b);
d=GCD(c,d);
printf("%d",d);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: