- 博客(3)
- 收藏
- 关注
原创 C语言学习(三)_21-10-28
循环 一 while循环 #include<stdio.h> int main() { int x; int ret=1; scanf("%d",&x); int t=x; while(x>2) { x/=2; ret++; } printf("log2 of %d is %d",t,ret); return 0; } #include<stdio.h> int main() { int x; in...
2021-10-28 23:57:13
179
原创 C语言学习(二)_21-10-20
一关系运算 二 if语句 1 实例 计算薪水 #include<stdio.h> int main() { const double RATE = 8.25; const int STANDARD = 40; double pay = 0.0; int hours; printf("请输入工作的小时数:"); scanf("%d",&hours); if(hours>STANDARD){ pay=RATE*ST...
2021-10-20 02:04:08
201
原创 C语言学习(一)_ 21-10-4
一 程序框架 #include<stdio.h> int main() { return 0; } 二 尝试简单的程序 1 做点计算 #include<stdio.h> int main() { printf("12+76=%d",12+76) ; return 0; }
2021-10-04 04:03:34
226
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人