求编程C语言的

来源:百度知道 编辑:UC知道 时间:2024/06/04 01:31:41
*********
*******
*****
***
*
我也这么写的 可第二句有错误

#include "stdio.h"
main()
{
int i,j;
for(i=1;i<=5;i++) {
for(j=1;j<=11-2*i;j++)
printf("*");
printf("\n");
}
}
这样就对了!已经调试通过!

#include "stdio.h"
main()
{
int i,j;
for(i=1;i<=5;i++)
{for(j=1;j<=11-2*i;j++)
printf("*");
printf("\n");}
}
没有问题le

#include "stdio.h"
int main(void) //int 不能掉!
{
int i=1,j=1;
for(i=1;i<=5;i++)
for(j=1;j<=11-2*i;j++)
{
printf("*");
} //{}可以不要,这样只是方便结构更清晰
printf("\n");
return 0;
}

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=11-2*i;j++)
{
printf("*");