小学生数学系统
来源:互联网 发布:深圳网站制作优化推广 编辑:程序博客网 时间:2024/04/29 21:15
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
int i;
int sum=0;
int a,b,c,d;
srand(time(0));
for (i=0;i<10;i++)
{
printf("第%d题\n",i+1);
a=rand()%10+1;
b=rand()%10+1;
c=a+b;
printf("%d+%d=",a,b);
scanf("%d",&d);
if (c==d)
{
printf("right!\n");
sum++;
}
else
printf("wrong!\n");
}
printf("共答对了%d道题,得分率%.2f\n",sum,1.0*sum/10*100);
return 0;
}
0 0
- 小学生数学考试系统
- 小学生数学考试系统
- 小学生数学系统
- 第九周 小学生数学考试系统
- 第九周 小学生数学考试系统
- 第十周-小学生数学考试系统
- 小学生数学考试系统(实现基本功能)
- 第十九周— 小学生数学考试系统
- 小学生数学
- C语言项目参考-小学生数学考试系统
- 第十周—小学生数学考试系统2
- 第十周—C语言 小学生数学考试系统
- 第十周(3)小学生数学考试系统
- 第十周课后作业——小学生数学考试系统
- 第十周 项目三-小学生数学考试系统
- 课程设计题1——小学生数学考试系统
- 小学生数学测试软件
- 小学生数学考试
- 以普通用户启动的Vim如何保存需要root权限的文件
- mac下jdk的目录结构
- 利用Eclipse的svn插件下载代码提交记录
- HDU ACM 11 2088 Box of Bricks
- myeclipse->project->clean作用
- 小学生数学系统
- ecplise编码问题
- 微信获取用户的openid
- Android:安全键盘
- Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
- LaneDetection
- Android权限详解
- python中访问限制
- 【vijos阴题】【有向图最小环】最佳路线