First block of code has printf and scanf statements; these work relatively fine (our prof told us to use %*c%c for some scanf inputs since asking for character and integer inputs gets weird but he didn't explain why). When I run my program the first block of code seems to work fine but the second's format is off and it seems to skip lines of instructions (namely, it skips receiving scanf inputs from the user and just displays the next line). Any ideas? For context, I'm only 3 weeks into an intro to C course so please be gentle.
printf("COFFEE-1...\n");
printf("Type ([L]ight,[B]lend): ");
scanf("%*c%c", &type1);
printf("Grind size ([C]ourse,[F]ine): ");
scanf("%*c%c", &grind1);
printf("Bag weight (g): ");
scanf("%d", &weight1);
printf("Best served with cream ([Y]es,[N]o): ");
scanf("%*c%c", &cream1);
printf("Ideal serving temperature (Celsius): ");
scanf("%d", &temp1);
printf("\nCOFFEE-2...\n");
printf("Type ([L]ight,[B]lend): ");
scanf("%*c%c", &type2);
printf("Grind size ([C]ourse,[F]ine): ");
scanf("%*c%c", &grind2);
printf("Bag weight (g): ");
scanf("%d", &weight2);
printf("Best served with cream ([Y]es,[N]o): ");
scanf("%*c%c", &cream2);
printf("Ideal serving temperature (Celsius): ");
scanf("%d", &temp2);