fork(1) download
  1. #include<stdio.h>
  2. int main(void)
  3. {
  4. int t,k,i;
  5.  
  6. scanf("%d",&t);
  7. while(t--)
  8. {
  9.  
  10. scanf("%d",&k);
  11. for(i=0;i<=k;i++)
  12. {
  13. printf("%c", (97+k)-i);
  14.  
  15. }
  16. printf("\n");
  17.  
  18. }
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 2056KB
stdin
3
2
3
100
stdout
cba
dcba
���������������������������������������������������������������������~}|{zyxwvutsrqponmlkjihgfedcba