练习2-3 输出倒三角图案

/*#include<stdio.h>
int main(){
  int i,j,count=4;
  for(i=count;i>0;i--){
  for(j=count-i;j>0;j--){
  printf(" ");
 }
for(j=count-i;j<count;j++){
printf("* ");
}
printf("\n\n");
  }
  return 0;
}*/
#include<stdio.h>
int main(void)
{
  printf("* * * *\n * * *\n  * *\n   *");
  return 0;
}

事实是,越简单的程序实现的越好么…
* * * *
 * * *
  * *
   *
作者: 陈建海
单位: 浙江大学
时间限制: 400ms
内存限制: 64MB
代码长度限制: 16KB

猜你喜欢

转载自blog.csdn.net/qq_31912571/article/details/80137503