下面这段代码是让计算机计算1.2×1.5的值。其中有5个错误,快来改正吧!
修改后:
#include <stdio.h>
#include <stdlib.h>
int main( )
{
float a, b, c;
a=1.2;
b=1.5;
c=a*b;
printf("%f", c);
system("pause");
return 0;
}
运行效果:
下面这段代码是让计算机计算1.2×1.5的值。其中有5个错误,快来改正吧!
修改后:
#include <stdio.h>
#include <stdlib.h>
int main( )
{
float a, b, c;
a=1.2;
b=1.5;
c=a*b;
printf("%f", c);
system("pause");
return 0;
}
运行效果: