![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
基础概念
楠木之林
这个作者很懒,什么都没留下…
展开
-
运算符与表达式
输入一个3位整数,将百位和各位复制,转换成一个5位整数. 例如123,转换为11233输入格式:一个3位整数输出格式:一个5位整数输入样例:123输出样例:11233#include<stdio.h>void main(){ int m; scanf("%d",&m); m=(m/100)*10000+(m/100)*1000+(m/10%10)*100+(m%10)*10+(m%10); printf("%原创 2022-01-13 13:22:19 · 1220 阅读 · 0 评论 -
温度的转换
输入一个华氏温度f(整数),要求根据公式c=5(f-32)/9计算并输出摄氏温度,其中f由键盘输入,结果保留1位小数。输入格式:输入在一行中给出1个绝对值不超过1000的整数f,表示华氏温度。输出格式:在一行中输出摄氏温度,结果保留1位小数。输入样例:100输出样例:37.8#include<stdio.h>int main(){ float f,c; scanf("%f",&f); c=5.0/9*(f-32);原创 2022-01-13 13:16:51 · 747 阅读 · 0 评论 -
求矩形面积
#include<stdio.h>void main(){ int a,b; int s; scanf("%d %d",&a,&b); s=a*b; printf("%d\n",s);}原创 2022-01-13 12:40:49 · 1134 阅读 · 0 评论