I am trying to create a program that repeatedly asks the user for input. However, in this case, the program just keeps printing "Enter your input"
until it crashes after I enter something for the first time.
#include <stdio.h>
int main() {
while (1) {
char input[100];
printf("Enter a input: ");
scanf("%[^\n]s", input);
}
}