C语言

1、程序的最后输出End-------printf("End");

2、将平时成绩打x折,即x=95时,就打九五折-------z=z*(x/100.);

3、int s,n;结果保留两位小数------z=1.0*s/n;(*1.0是结果更准确)

4、int s,n;-----z=(float)s/n;(强制类型转换)

5、设有表达式a+aa+aaa+aaaa+.....,其中a代表一个数字-----

  s=0,t=a;利用for循环s=s+t;t=t*10+a;

原文地址:https://www.cnblogs.com/sxy2021/p/14266994.html