Help me in solving RCPITCP90 problem

My issue

include <stdio.h>

int main() {
int num;

// Take input from the user
printf("Enter a number: ");
scanf("%d", &num);

// Print the multiplication table for the number in the desired format
for (int i = 1; i <= 10; i++) {
    printf("%dx%d = %d\n", num, i, num * i);
}

return 0;

}

My code

#include <stdio.h>

int main() {
    int num;

    // Take input from the user
    printf("Enter a number: ");
    scanf("%d", &num);

    // Print the multiplication table for the number in the desired format
    for (int i = 1; i <= 10; i++) {
        printf("%dx%d = %d\n", num, i, num * i);
    }

    return 0;
}

Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC14/problems/RCPITCP90