回复 8楼 明明白白
8楼正解,楼主注意基础呀
8楼正确
以下是引用明明白白在2012-4-21 14:46:40的发言:
#include
#include
void main()
{
double a,b,c;
printf("please input first number:");
scanf("%lf",&a);
printf("please input second number:");
scanf("%lf",&b);
c=a+b;
printf("the mum is: %lf \n",c);
}
#include
#include
void main()
{
double a,b,c;
printf("please input first number:");
scanf("%lf",&a);
printf("please input second number:");
scanf("%lf",&b);
c=a+b;
printf("the mum is: %lf \n",c);
}
感谢8楼童鞋!
我把printf("the mum is: %lf \n",c);
改为
printf("the num is: %lf \n",c);
意思更加准确了。
[ 本帖最后由 yuma 于 2012-4-26 09:37 编辑 ]