笔记
化为鹤
这个作者很懒,什么都没留下…
展开
-
“21天好习惯”第一期-2
“21天好习惯”第一期-2## 标题 今天学习了如何计算体指数 #include <stdio.h> int main(){ int w,m; float t; printf(“Input weight, height:\n”); scanf("%d,%d",&w,&m); w=w*2; printf(“weight=%d\n”,w); float h=m/100.0; printf(“height=%.2f\n”,h); t=w/h/h/2; printf(“t=%.2f\n”原创 2021-10-24 21:43:03 · 46 阅读 · 0 评论 -
“21天好习惯”第一期-1
“21天好习惯”第一期-1## 标题 今天学到了如何拆分逆序数 #include <stdio.h> #include <math.h> int main() { int x; x=fabs(x); printf(“Input x:\n”); scanf("%d",&x); int p=x%10; int q=(x%100)/10; int c=(x%1000)/100; int d=x/1000; int y=p1000+q100+c*10+d; int a=y/100;原创 2021-10-23 20:59:51 · 48 阅读 · 0 评论