#include "iostream" using namespace std; int main() {int i,j,n=6; i=1; while(i<=n) {j=1; while(j<=2*i-1) {cout<<'*'; j=j+1; } cout<<endl; i=i+1; } return 0; } 运行后结果为