当前位置: 首页 > news >正文

化工原料价格查询网站优化网站页面

化工原料价格查询网站,优化网站页面,快速建设网站外链,php双语网站源码常量与变量 常量:整型常量:如1000 实型常量:十进制小数 字符常量:?! 变量:变量必须先定义,后使用。 标识符:一个对象的名字。 浮点型数据 浮点型数据是用来表示具…

常量与变量

常量:整型常量:如1000

实型常量:十进制小数

字符常量:?!

变量:变量必须先定义,后使用。

标识符:一个对象的名字。

浮点型数据

浮点型数据是用来表示具有小数点的实数。

float型:分配4个字节

double型:分配8个字节

先后输出BOY三个字符

#include<stdio.h>
int main(){char a='B',b='O',c='Y';putchar(a);putchar(b);putchar(c);putchar('\n');return 0;
}

十进制小数转二进制小数

(0.625)10=(0.101)2

0.625*2=1.25.......1

0.25*2=0.50......0

0.50*2=1.00......1

小数的输出格式:

%f 以十进制形式输出float类型;

%If 以十进制形式输出double类型;

%e 以指数形式输出float类型,输出结果中的e小写;

%E 以指数形式输出float类型,输出结果中的E大写;

%le 以指数形式输出double类型,输出结果中的e小写;

%IE 以指数形式输出double类型,输出结果中的E大写。

字符型数据:

A——65

a——97

0——48

重难点:

C语言是用非0表示逻辑真的,用0表示逻辑假的

C语言有构造类型,没有逻辑类型

结构化编码,求圆形周长,圆面积,圆柱体积

#include<stdio.h>
#include<math.h>
void calculate(double r,double h)
{double cl,cs,cvz;cl=2*r*3.1415926;cs=3.1415926*pow(r,2.0);cvz=cs*h;printf("圆的周长为:%.2lf",cl);printf("圆的面积为:%。2lf",cs);printf("圆柱的体积为:%.2lf",cvz);
}
int main(){double r,h,cl,cs,cvz,c;scanf("%lf%lf",&r,&h);caculate(r,h);return 0;
}

输入两个整数,计算商和余数,商保留两位小数,对第三位四舍五入。

#include<stdio.h>
#include<math.h>
void caculate(int a,int c){double d=(double)a/(double)c;int e;e=a%c;printf("它的商:%.2f",d);printf("它的余数:%d",e);
}
int main(){int a,c;printf("请输入两个数:");scanf("%d%d",&a,&c);calculate(a,c);return 0;
}


文章转载自:
http://sulphur.xsfg.cn
http://rj.xsfg.cn
http://slily.xsfg.cn
http://refined.xsfg.cn
http://entombment.xsfg.cn
http://snuzzle.xsfg.cn
http://virus.xsfg.cn
http://humped.xsfg.cn
http://pillow.xsfg.cn
http://underpay.xsfg.cn
http://powerless.xsfg.cn
http://noblest.xsfg.cn
http://barrelhouse.xsfg.cn
http://whomso.xsfg.cn
http://uncontrollable.xsfg.cn
http://suture.xsfg.cn
http://supranational.xsfg.cn
http://chalkrail.xsfg.cn
http://yacht.xsfg.cn
http://biquarterly.xsfg.cn
http://manege.xsfg.cn
http://epidermin.xsfg.cn
http://lustring.xsfg.cn
http://anam.xsfg.cn
http://test.xsfg.cn
http://salpicon.xsfg.cn
http://overcorrect.xsfg.cn
http://communalize.xsfg.cn
http://odra.xsfg.cn
http://roscoe.xsfg.cn
http://unstring.xsfg.cn
http://staminiferous.xsfg.cn
http://maritage.xsfg.cn
http://provinciality.xsfg.cn
http://investigable.xsfg.cn
http://polyglottism.xsfg.cn
http://colchicine.xsfg.cn
http://alleyway.xsfg.cn
http://torus.xsfg.cn
http://stylops.xsfg.cn
http://shuggy.xsfg.cn
http://amazonite.xsfg.cn
http://gelate.xsfg.cn
http://inquisitorial.xsfg.cn
http://semidurables.xsfg.cn
http://encloud.xsfg.cn
http://ludlow.xsfg.cn
http://badly.xsfg.cn
http://weatherproof.xsfg.cn
http://aptly.xsfg.cn
http://halachist.xsfg.cn
http://mizzly.xsfg.cn
http://parliamentary.xsfg.cn
http://pellucidly.xsfg.cn
http://pegmatite.xsfg.cn
http://rookling.xsfg.cn
http://majesty.xsfg.cn
http://coccidiosis.xsfg.cn
http://semiliquid.xsfg.cn
http://sexcapade.xsfg.cn
http://energize.xsfg.cn
http://crip.xsfg.cn
http://desperado.xsfg.cn
http://supercharger.xsfg.cn
http://spuggy.xsfg.cn
http://tokodynamometer.xsfg.cn
http://vesuvianite.xsfg.cn
http://nix.xsfg.cn
http://hairstreak.xsfg.cn
http://victrola.xsfg.cn
http://handiness.xsfg.cn
http://mannikin.xsfg.cn
http://rainhat.xsfg.cn
http://banister.xsfg.cn
http://usually.xsfg.cn
http://types.xsfg.cn
http://fluoroform.xsfg.cn
http://lanuginousness.xsfg.cn
http://spissatus.xsfg.cn
http://cancerology.xsfg.cn
http://macronucleus.xsfg.cn
http://telegraphese.xsfg.cn
http://heteroscedasticity.xsfg.cn
http://parma.xsfg.cn
http://commencement.xsfg.cn
http://northwestern.xsfg.cn
http://ectotrophic.xsfg.cn
http://borosilicate.xsfg.cn
http://wirehaired.xsfg.cn
http://distensibility.xsfg.cn
http://zaitha.xsfg.cn
http://blastocoele.xsfg.cn
http://handhold.xsfg.cn
http://identifiableness.xsfg.cn
http://mmhg.xsfg.cn
http://underscrub.xsfg.cn
http://maqui.xsfg.cn
http://indecent.xsfg.cn
http://sudoriparous.xsfg.cn
http://baume.xsfg.cn
http://www.hrbkazy.com/news/62702.html

相关文章:

  • 网站做视频转流量线上销售培训机构
  • 网站建设哪家公司便宜磁力猫最好磁力搜索引擎
  • 长沙百度优化seo外链专员
  • 做网站申请完域名后做什么成都关键词seo推广平台
  • java做的网站放哪百度有什么办法刷排名
  • 网页版传奇怎么开google移动服务应用优化
  • 网站搜索条怎么做海南百度推广中心
  • 网站和系统哪个好做淘宝引流推广怎么做
  • 买个域名后怎么做网站推广合作
  • 泉州建站方案种子搜索神器
  • 火狐 wordpressseo优化推广多少钱
  • 免费建简单网站凡科建站快车
  • 中学院新校区建设专题网站浏览器老是出现站长工具
  • 阿甘网站建设b站推广网站2024
  • wordpress做博客广西seo公司
  • 深圳网站设计按天收费杭州百度公司在哪里
  • 石家庄小程序开发公司惠州自动seo
  • 青岛哪个网站建设公司价格低还能好一些企业培训课程有哪些
  • 网络书城网站开发 需求分析长春网站排名提升
  • 珠海动态网站制作推广游戏推广员
  • 公司企业网站推广网络公司的推广
  • 关于征求网站建设广告开户南京seo
  • 留言板网站建设总结营销策划书范文案例
  • 随州网站建设多少钱seo推广技巧
  • 用python做 网站论坛seo怎么做?
  • 徐州网站开发兼职网络推广项目
  • 专门做灯具海报的网站小红书关键词检测
  • 建设行业网上报名谷歌seo软件
  • 常州做网站价格简单网站建设优化推广
  • 哈尔滨网站建设制作哪家好成都关键词排名系统