I did it

My issue

My code

#include <stdio.h>

int main() {
    int num;
    int fact = 1;
    if("%d", &num);
    for(int a = 1; a <= num; a=a+1)
    {
        fact = fact*a;
    }
	printf("The factorial of the given number is: %d \n",fact);
    return 0;
}

Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone

here is the correct code but i guess your code is correct what is the problem
include <stdio.h>

int main() {
int num;
int fact = 1;
scanf(“%d”, &num);
for(int a = 1; a <= num; a++)
{
fact = fact*a;
}
printf(“The factorial of the given number is: %d \n”,fact);
return 0;
}

No i did it.Thanks for help

Congratulations!