したがって、このコードを実行しようとすると、最初の printf が実行されますが、値を入力せずに 2 番目の printf が表示されます。私が間違っていることはありますか?
#include <stdio.h>
int main(int argc, const char * argv[])
{
int suit1;
int suit2;
char H, S, C, D;
float value1;
float value2;
printf("Please enter the card's suit");
scanf("%d", &suit1);
printf("Please enter the card's value");
scanf("%f", &value1);
printf("%d %f", suit1, value1);
}