• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

wchenfeng

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 32 下一页

2022年4月12日

c语言基本减法

摘要: #includeint main(){ int a,b; scanf("%d%d",&a,&b); printf("a-b=%d",a-b); return 0;} 阅读全文

posted @ 2022-04-12 20:03 王陈锋 阅读(697) 评论(0) 推荐(0)

c语言中0.f例子

摘要: #includeint main(void){ double a=22222.22222; printf("a=%0.5f\n",a); return 0;} 阅读全文

posted @ 2022-04-12 20:03 王陈锋 阅读(196) 评论(0) 推荐(0)

c语言第一步hello world

摘要: #include int main(void){ printf("hello world"); return 0;} 阅读全文

posted @ 2022-04-12 20:03 王陈锋 阅读(44) 评论(0) 推荐(0)

输入一串数字,输出分开的数字。例如123,输出1 2 3

摘要: #include #include int main(){ int a, i, c, b, t; scanf("%d", &a); t = a; i=0; while (t > 0) { t = t /... 阅读全文

posted @ 2022-04-12 20:03 王陈锋 阅读(172) 评论(0) 推荐(0)

输入一个字符,输出它的ascii

摘要: #include int main() { char ch; scanf("%c",&ch); printf("%d",ch); return 0; } 阅读全文

posted @ 2022-04-12 20:03 王陈锋 阅读(482) 评论(0) 推荐(0)

编写程序,读入3个双精度实数,求它们的平均值并按照如下个格式输出:保留4位小数,数据宽度为20、不足补0,输出正负号。

摘要: #includeint main(){ double a,b,c,sum; scanf("%lf%lf%lf",&a,&b,&c); sum=a+b+c; printf("%+020.4f\n",sum/3); return 0;} ... 阅读全文

posted @ 2022-04-12 20:03 王陈锋 阅读(199) 评论(0) 推荐(0)

编写程序实现从键盘输入三个整数,输出三个数中的最小数。(使用if关键字)

摘要: #includeint main(){ int x,y,z,min; scanf("%d%d%d",&x,&y,&z); min=x; if (min>y) min=y; else (min=x); if(min>z) min=z; printf("... 阅读全文

posted @ 2022-04-12 20:03 王陈锋 阅读(619) 评论(0) 推荐(0)

编写程序,输入一个整数,使用逻辑表达式计算该数“大于100或小于0”的结果并输出。

摘要: #includeint main(){int a,b;scanf("%d",&a);printf("%d",a>100||a<0);} 阅读全文

posted @ 2022-04-12 20:03 王陈锋 阅读(80) 评论(0) 推荐(0)

c语言中i++与++i区别

摘要: #includeint main(void){ int i=5,y; y=i++*++i; printf("i=%d\n",i); printf("y=%d\n",y); i=5; y=i++*i++; printf("i=%d\n",i); printf("... 阅读全文

posted @ 2022-04-12 20:03 王陈锋 阅读(42) 评论(0) 推荐(0)

c语言基本加法

摘要: #include int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d", a+b); return 0;} 阅读全文

posted @ 2022-04-12 20:03 王陈锋 阅读(180) 评论(0) 推荐(0)

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 32 下一页
 
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3