您的位置 电脑知识爱好者 >> 编程知识 >> 请写出下面图形的C语言代码:

请写出下面图形的C语言代码:

电脑知识爱好者互联网本站整理2007-9-5 0:32:58
知识重点:screen.width*0.35) this.width=screen.width*0.40> 代码如下: #include stdio.h #include conio.h void printStar(){ int i,j,k; for(i = 0; i = 9; ++i){ for(j = 0; j = 8 - i;..

代码如下:

#include <stdio.h>

#include <conio.h>

void printStar(){

int i,j,k;

for(i = 0; i <= 9; ++i){

for(j = 0; j <= 8 - i; ++j)

printf(" ");

for(k = 0; k <= 2*i; ++k)

printf("*");

printf("\n");

}

}

void main(){

printStar();

_getch();

}

希望对你有帮助

参与评论
相关内容
关于我们 | 隐私政策 | 站点地图 | 站长博客|京ICP备07025396号
添加到百度搜藏 添加到百度搜藏 电脑知识爱好者Copyright ?2006-2008版权所有 我要啦免费统计