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