摘要:
3.1 #include<stdio.h> int main(){ char a; scanf("%c",&a); if(a>=65&&a<=90) //大写字母的ASC码值范围 printf("%c\n",a+32); //a+32代表ASC码值增加,大写转变为小写 else if(a>=97&& 阅读全文
posted @ 2017-03-06 22:42
么么打123
阅读(268)
评论(0)
推荐(0)
摘要:
2.1 建议使用double型 #include<stdio.h> int main(){ double x,y,z,s,p,a; scanf("%lf%lf%lf",&x,&y,&z); s=x+y+z; p=x*y*z; a=s/3.0; printf("%lf\n%lf\n%lf\n",s,p 阅读全文
posted @ 2017-03-06 13:04
么么打123
阅读(200)
评论(0)
推荐(0)
浙公网安备 33010602011771号