会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
露露7
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2023年3月
第一次作业3月17号
摘要: 1. 定义圆形半径,求面积。 package test1; publicclass java { publicstaticvoid main(String[] args) { // TODO Auto-generated method stub doubler=8; doublearea=3.14*
阅读全文
posted @ 2023-03-17 17:13 露露0817
阅读(36)
评论(0)
推荐(0)
2021年11月
第十次作业23号
摘要: 统计字符串中大写字母的个数。 #include<stdio.h> main() { char str[20]; int i,cnt; cnt=i=0; gets(str); while(str[i]!='\0') { if(str[i]>='A'&&str[i]<='Z') cnt++; i++;
阅读全文
posted @ 2021-11-23 22:25 露露0817
阅读(47)
评论(0)
推荐(0)
第九次作业
摘要: 1. #include<stdio.h> main() { double m[8]; int i; for(i=0;i<=7;i++) scanf("%lf",&m[i]); for(i=7;i>=0;i--) printf("%f",m[i]); } 2.使用一维数组,从键盘上接收6个数,找出最大
阅读全文
posted @ 2021-11-17 20:29 露露0817
阅读(47)
评论(0)
推荐(0)
第八次作业
摘要: 猜数字: 随机产生一个0-99的数,猜猜看 如果大了 就提示大了点 如果小了 就提示小了点 直到猜对为止 #include <stdio.h> #include <stdlib.h> #include <time.h> main(){ int x,guess; srand((unsigned int
阅读全文
posted @ 2021-11-13 13:28 露露0817
阅读(38)
评论(0)
推荐(0)
第七次作业
摘要: 1,左直角三角形 #include<stdio.h> main() { int i,j; for(i=1;i<=5;i++){ for(j=1;j<=i;j++){ printf("*"); } printf("\n"); } } 1题倒三角 #include<stdio.h> main() { i
阅读全文
posted @ 2021-11-10 15:32 露露0817
阅读(37)
评论(0)
推荐(0)
第六次作业
摘要: 1.编写程序,使用while语句求和sum=1+3+5+7+…+21。 #include<stdio.h> main() { int i=1;int sum=0; while(i<=21) { sum+=i; i+=2; } printf("sum=%d/n",sum); } 2.编写程序,使用wh
阅读全文
posted @ 2021-11-02 21:39 露露0817
阅读(42)
评论(0)
推荐(0)
2021年10月
第五次作业10月30号
摘要: 1.编写程序判断n是正数还是负数。 #include<stdio.h>main(){int n;printf("输入一个整数:\n");scanf("%d",&n);if(n>0)printf("%d是正数!\n",n);elseif(n==0)printf("%d既不是正数,也不是负数!\n",n
阅读全文
posted @ 2021-10-30 16:50 露露0817
阅读(46)
评论(0)
推荐(0)
第四次作业10月26日
摘要: 1.4-8 使用switch-case语句将分数分级。 #include <stdio.h> main() { int mark; printf("请输入分数"); scanf("%d",&mark); switch(mark/10) { case 10: case 9:printf("A\n");
阅读全文
posted @ 2021-10-26 22:25 露露0817
阅读(39)
评论(0)
推荐(0)
第三次作业
摘要: 1.编写程序 ,判断一个数n是正数还是负数。 #include< stdio.h> main() { float n; scanf("%f",&n); if(n>0) printf("正数!\n"); else if(n==0) printf("0既不是正数,也不是负数!\n"); else pri
阅读全文
posted @ 2021-10-20 14:55 露露0817
阅读(36)
评论(0)
推荐(0)
第二次作业第二部分
摘要: 1 #include<stdio.h> main() { int a; float b; double c; char d; scanf("%d\n%f\n%lf\n%c",&a,&b,&c,&d); printf("%d\n%f\n%lf\n%f",a,b,c,d); } 2 #include<s
阅读全文
posted @ 2021-10-15 19:53 露露0817
阅读(37)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告