#include<iostream.h> int main() { int i,j,k; for(i=1;i<=10;i++) { for(j=1;j<=10-i;j++) cout<<" "; for(k=1;k<=2*i-1;k++) cout<<"#"; cout<<endl; } return 0; }
#include<iostream.h> int main() { int i,j,k; for(i=1;i<=10;i++) { for(j=1;j<=10-i;j++) //"j<=10-i" cout<<" "; for(k=1;k<=2*i-1;k++) //"k<=2*i-1" cout<<"#"; cout<<endl; }; return 0; }