GCD Exploration

  • + 0 comments

    include

    include

    int main(){ unsigned long long int N,a,b,k,x,y=0,z=0,i; scanf("%lld %lld %lld",&N,&a,&b); while (b!=0) { k=b; b=a%b; a=k; } x=N; while (x!=0) { x=x/10; y++; } for (i=1;i<=a;i++) printf ("%lld",N); }