Read for inputs individualy [C] : I want to read inputs individually, that means that I enter a character, press enter and then ask for the second input. The problem is that when the program asks me to input the character it asks for both at the same time.

This is my code:

    #include <stdio.h>

   

    int main(){
    	printf("Enter a character \n");
	
	char a = 0;
	a = getchar();
	

		printf("You entered: %c \n",a);
	

		putchar(a);
		
		
		printf("\n");
	
	char b[2];
	puts(b);
	gets(b);
	
		printf("You entered: %c \n",b[0]);
		
		puts(b);