这是代码
printf("\n");
printf("Enter a integer vaule:");
scanf("%d" , &num3);
printf("You entered: %015d", num3);
printf("Enter a float value:");
scanf("%f", &deci3);
printf("You entered: %15.2f", deci3);
printf("\n");
输出是
Enter a integer vaule:4.4
You entered: 000000000000004
Enter a float value:You entered: 0.40
问题是这段代码没有停在
printf("Enter a float value:");
这个scanf
scanf("%f", &deci3);
似乎从之前的 scanf 中获得了它的价值