#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#pragma warning(disable:4996)
int xinxin(int n)
{
int i = 0;
for (i = 0; i < 10; i++)
{
for (int j = 0; j<=i; j++)
{
printf("*");
}
printf("\n");
}
for (i = 0; i < 10; i++)
{
for (int j = 0; j < 10 - i; j++)
{
printf("*");
}
printf("\n");
}
return 0;
}
int main02()
{
//xinxin(10);
//xinxin("xinxin=%d\n", xinxin(xinxin(10)));
printf("xinxin=%d\n",xinxin(10) );
return 0;
} |