倒三角

来源:互联网 发布:sql删除多行 编辑:程序博客网 时间:2024/04/28 00:41

实验目的:输出星图


// 以下是程序,请在需要的位置写入必要的注释

#include <iostream>using namespace std;int main( ){       int i,j,m,n=10;       i=1;       while(i<=10)       {              j=1;              while(j<=2*(n-i)-1)              {                     cout<<'*';                     j++;              }              cout<<endl;              i++;       }       return 0;}

 

上机感言:看到自己写的程序达到目的,心里非常高兴。