fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void alpha_right_angle_inverse(int n){
  5. for(int i=0;i<=n;i++){
  6.  
  7. for(char ch ='E'-i;ch<='E';ch++){
  8. cout<<ch <<" ";
  9.  
  10. }
  11. cout<<endl;
  12. }
  13. }
  14.  
  15.  
  16. int main() {
  17. // your code goes here
  18. alpha_right_angle_inverse(5);
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
E 
D E 
C D E 
B C D E 
A B C D E 
@ A B C D E