请问各位大神这道题用C sharp怎么编写
int e=1,f=4,g=2;float m=10.5,n=4.0,k;k=(e+f)/g+(double)n*1.2/g+m;
就直接这么写就可以了。不涉及指针,c#和c是一样的。