Pattern 14
user_6679955
c_cpp
10 months ago
185 B
7
Indexable
void nLetterTriangle(int n) {
char x ='A';
for(int i=0;i<n;i++){
for(int j=0;j<=i;j++){
cout<<char(x+j)<<" ";
}
cout<<endl;
}
}Editor is loading...
Leave a Comment