- 1
- 0
- 约5.06千字
- 约 34页
- 2020-11-19 发布于上海
- 举报
Chap 7 arrays 数 组 ;7.2 one-dimensional arrays;2、array item; initialization of one-demensional array; int b[5] = {1, 2, 3};
b[0] = 1, b[1] = 2, b[2] = 3, b[3] = ?, b[4] = ?
int a[ ] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};;
for(i = 0; i n; i++)
printf(%d , a[i]);
;Input 10 numbers ,save them in arrays, then print them ;Calculate and print the first m Fibonacci numbers
1, 1, 2, 3, 5, 8, 13, ……
f[0] = f[1] = 1
f[n] = f[n-1] + f[n-2] 2≤n≤19;#include stdio.h
int main(void)
{
int i;
int fib[20] = {1, 1};
for(i = 2; i 20; i++)
fib[i] = fib[i - 1] +
您可能关注的文档
最近下载
- 十二指肠良性肿瘤多学科决策模式中国专家共识(2025版).docx
- 城市轨道交通能源消耗与排放指标评价方法.pptx VIP
- 《法律职业伦理》课件——第三讲 检察官职业伦理.pptx VIP
- 《法律职业伦理》课件——第二讲 法官职业伦理.pptx VIP
- 儿科学课件:新生儿高胆红素血症诊断和治疗.pdf VIP
- 《法律职业伦理》课件——第四讲 律师职业伦理.pptx VIP
- 美国法律职业伦理.ppt VIP
- 压裂返排液预处理单元.pdf VIP
- 《国家电网公司输变电工程工艺标准库》,《国家电网公司输变电工程工艺标准库》(土建屋外配电工程)(1).docx VIP
- 国家电网公司标准工艺手册范本.pdf VIP
原创力文档

文档评论(0)