can anybody please help me
i got when i gave input 2019 it showed correct answer but when i submitted it showed verdict as wrong answer the following below is code written by me in c language
#include<stdio.h>
#include<math.h>
void absdig(int m){
int a[1000000],i = 0;
int count = 0,y,product = 1,r = 1000000007,g;
while( m != 0){
y = m % 10;
m = m / 10;
a[i] = y;
count++;
i++;
}
for(int j = 0;j < count;j++){
for(int k = 0;k < j;k++){
g = fabs(a[k] - a[j]);
product *= g % r;
}
}
printf("%d\n",product % r);
product = 1;
count = 0;
}
int main(){
int m,t;
scanf("%d",&t);
while(t){
scanf("%d",&m);
absdig(m);
t–;
}
return 0;
}