摘要: int n; scanf("%d",&n); while(n>0) { printf("%d",n%10); n/=10; //其实就是n的自除,即n=n/10; } 阅读全文
posted @ 2019-11-01 20:18 Fate-Joker 阅读(2071) 评论(0) 推荐(0) 编辑
摘要: double f(double x){double result;if(x<0)result=-x+sin(x);else if(x==0)result=0; else if(10>x>0) result=log2(x); else if(x>=10) result=pow(x,2);return 阅读全文
posted @ 2019-11-01 17:57 Fate-Joker 阅读(2390) 评论(0) 推荐(0) 编辑