Learning course: C for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone
Feedback
not executing even though its correct!
Learning course: C for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone
not executing even though its correct!
@sowjanya_2003
it is executing perfectly
// Debug the given code
include <stdio.h>
int main() {
int t;
int N;
int i = 1;
scanf(“%d”, &t );
while ( i <= t)
{
scanf(“%d”, &N);
printf(“%d\n”, 2*N );
i = i+1;
}
return 0;
}
here is the code in while loop curly braces are missing and i=i+1 semicolon is missing.