what's wrong with my code? (Problem code: DECSTR)

#include<stdio.h>

void main()
{

int t,n,a;
char c;
scanf("%d", &t);
while(t--)
{
    printf("\n");

	scanf("%d", &n);
	for(a=97+n;a>=97;a--)
	{
		c=(char)a;
		printf("%c", c);
	}
}

}

/it’s generating correct result in CodeBlocks/