My issue
this is show me runtime error , how can i solve it?
My code
#include <stdio.h>
int main(void) {
int x,a;
printf("total distance travell by chef =2x");
printf("enter the value of x=%d");
scanf("%d",x);
a=2*x;
printf("total distance=%d",a);
return 0;
}
Learning course: Basic Math using C
Problem Link: Fitness Practice Problem in - CodeChef