I recently started coding in c. I was wondering how you can repeat/loop a task as many times as the user wants (by input).
int a,i;
scanf("%d", a);
for(i=0; i<a; i++){...}
This is the code I came up with, but it doesn't work. It's an infinite loop.