写出3.5*3+2*7-‘a’的程序
写出表达式3.5*3+2*7-‘a’的值,程序如下:#include <iostream>
using namespace std;
int main ()
{
float b;
int c, d, e, f, g;
b=3.5;
c=3;
d=2;
e=7;
f='a';
g=b*c+d*e-f;
cout << g <<endl;
return 0;
}
程序以及结果对吗
2018-10-15 17:32