Help me in solving CLB059 problem

My issue

include <stdio.h>

int main() {
// Declare variables
int length, width, area;

// Accept user inputs
printf("Enter the length of the rectangle: ");
scanf("%d", &length);

printf("Enter the width of the rectangle: ");
scanf("%d", &width);

// Compute the area
area = length * width;

// Output the area
printf("Area of the rectangle is: %d\n", area);

return 0;

}

My code


#include <stdio.h>

int main() {
    // Declare variables
    int length, width, area;

    // Accept user inputs
    printf("Enter the length of the rectangle: ");
    scanf("%d", &length);
    
    printf("Enter the width of the rectangle: ");
    scanf("%d", &width);

    // Compute the area
    area = length * width;

    // Output the area
    printf("Area of the rectangle is: %d\n", area);

    return 0;
}

Learning course: Programming and Problem solving using C
Problem Link: https://www.codechef.com/learn/course/ciet-programming-c/CIETPC14/problems/CLB059