标签:amp for main war secure can include str std
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
int main()
{
int n;
printf("请输入想要打印三角形的高度:\n");
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n-i-1; j++)
{
printf(" ");
}
for (int k = 0; k < 2*i+1; k++)
{
printf("*");
}printf("\n");
}
return EXIT_SUCCESS;
}
标签:amp for main war secure can include str std
原文地址:https://www.cnblogs.com/yyslif/p/11420936.html