#include <stdio.h>
int main() {
int a,b,c,d=0,y,z=0,n=1,m=1,k=10,l;
int p;
int x[100000];
scanf("%d %d",&a,&b);
c=b;
y=b;
l=b;
while(c)
{
if(c%2==0)
{
d++;
c=c/2;
b=b/2;
}
else
{
break;
}
}
while(y)
{
if(y%5==0)
{
z++;
y=y/5;
b=b/5;
}
else
{
break;
}
}
while(1)
{
if(k%b==1)
{
break;
}
else
{
k=k*10;
m++;
}
}
n=a;
for(int i=1;i<=m;i++)
{
n=n*10;
p=n/b;
printf("%d ",p);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: