本文介绍了在输入为4567.123456的程序中,输出为4567.123535的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
#include<stdio.h>
#include<conio.h>
void main()
{
float n;
printf("Enter a number");
scanf("%f", &n);
printf("Number is....: %f", n);
getch()
}
推荐答案
double n;
printf("Enter a number");
scanf("%lf",&n);
printf("Number is....: %lf",n);
这可能会解决您的问题
This might solve your problem
这篇关于在输入为4567.123456的程序中,输出为4567.123535的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!