There are several problems with the code. The scanf function should NEVER be used with a character string because of an unavoidable overflow.
scanf("%s", &command);
In this case, however, only a single character should be read anyway. However, since at least the end-of-line character is still in the buffer from the previous reading of the variable c, it is read here. It is therefore advisable to empty the buffer completely before reading in. I've added a function for this - there are several ways.
scanf("%d", &c);
printf("%d\n", c);
char command;
printf("Enter the command \n");
clearstdin();
scanf("%c", &command);