输出结果后画面不停留,为什么?
/**英里转换成公里
*/
#include<stdio.h>
#define KMS_PER_MILE 1.609
int main()
{
double miles,
kms;
printf("Enter the distance in miles >");
scanf("1f%",miles);
kms = KMS_PER_MILE * miles ;
printf("That is equals %f kilometers.\n",kms);
return(0);
}
如题,就算在加了getchar()后也一样,一闪而过。求教各位大神了,谢啦!