fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. /*int n;
  5.   printf("Enter the columns: \n");
  6.   scanf("%d",&n);*/
  7. int m;
  8. printf("Enter the rows: \n");
  9. scanf("%d",&m);
  10.  
  11. for(int i=1;i<=m;i++){
  12. int a=65;
  13.  
  14. for(int j=1;j<=m;j++){
  15. char ch=(char)a;
  16. printf("%c ",ch);
  17. a++;
  18. }
  19. printf("\n");
  20.  
  21. }
  22.  
  23.  
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0.01s 5284KB
stdin
5
stdout
Enter the rows: 
A B C D E 
A B C D E 
A B C D E 
A B C D E 
A B C D E