*/
int xiShu = 1;
int item = 0;
int result = 0;
for (int i = 0; i < 5; i++) {
if (i == 0) {
xiShu = 1;
}else{
xiShu = xiShu * 10;
}
item = 2 * xiShu + item;
result = result + item;
printf("result = %d\n",result);
}
for (int j = 0; j < 2 * i + 1; j++) {
printf("*");
}
printf("\n");
}
}
void test1()
{
int a = 4;
int b = 8;
int start = a > b ? b : a;
while (start != 0 ) {
if (a % start == 0 && b % start == 0) {
printf("%d,%d的最大公约数%d\n",a,b,start);
break;
}
start--;
}
}
void test()
{
int a = 4;
int b = 6;
for (int i = 1;;i++) {
if(i % a == 0 && i % b == 0 ){
printf("%d,%d的最小公倍数%d\n",a,b,i);
break;
}
}
}