Paattern 15
user_6679955
c_cpp
3 months ago
188 B
3
Indexable
void nLetterTriangle(int n) { char x ='A'; for(int i=0;i<n;i++){ for(int j=0;j<n-i;j++){ cout<<char(x+j)<<" "; } cout<<endl; } }
Editor is loading...
Leave a Comment
void nLetterTriangle(int n) { char x ='A'; for(int i=0;i<n;i++){ for(int j=0;j<n-i;j++){ cout<<char(x+j)<<" "; } cout<<endl; } }