Site is showing correct solution worng for no reason

#include <stdio.h>

int main(void) {
int t;
scanf("%d",&t);
while(t>0){
int n,fact=1;
scanf("%d",&n);
while(n>=1){
fact=fact*n;
n=n-1;
}
printf("%d \n",fact);
t–;
}
return 0;
}
can anyone tell me how this program is wrong? it’s a beginner level practice problem ‘factorial of numbers’ i ran the test cases with this and the output was same but when i submitted it ,it said wrong answer plesae explain this to me

use t –

It will be t-- At The 4th Last Line
I have corrected your code

#include <stdio.h>

int main(void) {
int t;
scanf("%d",&t);
while(t>0){
int n,fact=1;
scanf("%d",&n);
while(n>=1){
fact=fact*n;
n=n-1;
}
printf("%d \n",fact);
t–;
}
return 0;
}

BTW PLEASE FORMAT YOUR CODE SO THAT IT WILL BE EASY FOR US TO UNDERSTAND

N can range from 1 to 100. So factorial >20 is not possible to store in any data type of C/C++. Either use python or use BigInteger library of java or boost library of C++

It should be t-- not t- & next time format your code