#include <iostream>
using namespace std;
int main() {
int n=4;
char ch='A';
for(int i=0;i<n;i++){
for(int j=i+1;j>0;j--){//backwards floyd'ss triangle
cout<<ch<<" ";
ch++;
}
cout<<endl;
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: