标签:
Description
Input
Output
Sample Input
Sample Output
#include <stdio.h>
int main ()
{
int a, b, num, i, flag, x;
while(scanf ("%d%d", &a, &b), a!=0 && b!=0)
{
a = a*100;
flag = 0;
for (i = 0; i<100; i++)
{
x = a+i;
if (x%b == 0)
{
if (flag == 1)
{
if (i<10)
printf (" 0%d", i);
else
printf (" %d", i);
}
else
{
if (i<10)
printf ("0%d", i);
else
printf ("%d", i);
}
flag = 1;
}
}
printf ("\n");
}
return 0;
}
标签:
原文地址:http://www.cnblogs.com/yishilin/p/4237207.html