Decresing String

decreasing string

I don’t know what is the problem when the output is correct but it is showing incorrect answer.
please help !

#include<stdio.h>
int main()
{
int a,n,b,i,t,ch;

scanf("%d",&t);
for (t;t>0;t–)
{
scanf("%d",&b);
while (b>25 && b<=100)
{
b=b-25;
}
for (b;b>=0;b–)
{
ch = 97+b;
printf("%c",ch);
}
}
return 0;
}

your code is giving wrong answer for k = 100

your code’s output:

zyxwvutsrqponmlkjihgfedcba

expected output:

zyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcbazyxwvutsrqponmlkjihgfedcba

see here. Also you forgot to print the output for each testcase in a new line.

still it is giving wrong answer.