习题8
来源:互联网 发布:mac电脑有什么游戏好玩 编辑:程序博客网 时间:2024/06/05 06:58
8.1
#include <stdio.h>#include <math.h>void Func(int x){ x=20;}int main(){ int x=10; Func(x); printf("%d",x); return 0;}
8.2
#include <stdio.h>#include <math.h>void Func(int b[]){ int j; for(j=0;j<4;j++) { b[j]=j; }}int main(){ static int a[]={5,6,7,8},i; Func(a); for(i=0;i<4;i++) { printf("%d",a[i]); }}
8.4
#include<stdio.h>#include <stdlib.h>#define N 40void main(){ int score[N],i,n; int temp=0; printf("请输入任意学生人数:"); scanf("%d",&n); printf("输入任意学生成绩:"); for(i=0;i<n;i++) { scanf("%d",&score[i]); } for(i=0;i<n;i++) { if(score[i]<60) { temp++; } } printf("不及格的人数为:%d\n",temp);}
阅读全文
0 0
- 习题8
- 习题8
- 习题8
- 习题8
- 内部类习题8
- 习题1-8,绝对值
- 习题2—8
- 习题2-8
- 习题9-8 Uva1632
- 习题9-8 uva1631
- 训练4 习题8
- 习题8 打印,打印
- 习题8--打印,打印
- 习题8-4 报数
- 第8章习题
- 习题8(8.4)
- 习题8(8.5)
- 习题8(8.6)
- Celery 队列路由介绍
- FZU 1627Revival's road
- HDOJ 2561 第二小整数(水)
- 学习HTMLTestRunner笔记
- [leetcode] 413. Arithmetic Slices
- 习题8
- 【斯特林公式】N!的k进制位数
- 神经网络 tensorflow教程 2.2 下载MNIST 数据集(保存所有图片)
- VMware虚拟机nat模式连不上网
- python入门第三天——继承
- idea快捷键
- sdk 开发中引入不同的字体风格
- IDEA中导入JSTL的格式化标签库fmt
- 卷积网络