• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
唐旭敏
博客园    首页    新随笔    联系   管理    订阅  订阅
2013年10月20日
作业3
摘要: 1.#includeint main(void){ int x,y; printf("Enter x:\n"); scanf("%d",&x); if(xint main (void){ int count,i,n; double grade,total; printf("Enter n:"); scanf("%d",&n); total=0; count=0; for(i=1;i=60){ count++; } } printf("Grade average=%.2f\n",t 阅读全文
posted @ 2013-10-20 22:06 唐旭敏 阅读(96) 评论(0) 推荐(0)
分支和循环
摘要: 1.#includeint main(void){ double num1,num2; char op; printf("Type in an expression:"); scanf("%lf%c%lf",&num1,&op,&num2); if(op=='+') printf("=%.2f\n",num1+num2); else if(op=='-') printf("=%.2f\n",num1-num2); else if(op=='*' 阅读全文
posted @ 2013-10-20 22:00 唐旭敏 阅读(144) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3