#include<stdio.h>
int t,a[10],i,min,value;
int main()
{
scanf("%d",&t);
while(t–)
{
min=999999;
for(i=0;i<10;i++)
{
scanf("%d",&a[i]);
if(min>a[i]&&i!=0)
{
min=a[i];
value=i;
}
}
if(min==0)
printf("%d\n",value);
else
{
if(a[0]!=0)
{
if(a[0]>=min)
{
for(i=0;i<=min;i++)
printf("%d",value);
}
else
{
printf("%d",value);
for(i=0;i<=a[0];i++)
printf(“0”);
}
}
else
{
printf("%d",value);
printf(“0”);
}
}
printf("\n");
}
return 0;
}
pls mention the problem.
birthday candles
CODE CANDLE