Paattern 15
user_6679955
c_cpp
a year ago
188 B
6
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