Help me in solving FIT problem

My issue

why it is wrong

My code

#include <stdio.h>

int main(void) {
    int x,c;
    scanf("%d",&x);
    c=(10*x);
    printf("%d",c);

	return 0;
}


Learning course: Basic Math using C
Problem Link: CodeChef: Practical coding for everyone
what is wrong with test case 1,2,3

@tejeswar127
Hii.
In your code the variable x takes the input as number of test cases and not the km, reulting in the failure of your output.
Your logic is absolutely correct. But, the first input given for this program is NUMBER OF TEST CASES so you should define a variable T(or any variable) which contains the number of test cases. Further you should use your logic inside the loop in which the loop continues until the testcases come to an end. The loop can be while(T- -) and you can use your logic inside this loop. Hence your code will be error-free and 100% correct.