My issue
code not running
My code
#include <stdio.h>
int main() {
int n,x,y;
for (int i=0;i<n;i++){
scanf("%d",&x);
scanf("%d\n",&y);
if (y>x){
printf("%d",((y-x)*2)+x);
}
else {
printf("%d",y);
}
}
return 0;
}
Learning course: Basic Math using C
Problem Link: CodeChef: Practical coding for everyone