C语言编程:输入一个华氏温度,要求输出相应摄氏温度,c=5 9(f-32)
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/11 23:39:34
例如:2的3次方#include#includeintmain(intargc,char*argv[]){printf("%f\n",pow(2,3));//第一个参数是底数(double),//第二
intmain(){floatc,f;printf("pleaseinputthef=");scanf("%f",&f);c=5/9*(f-32);printf("thec=%f",c);}再问:你运
#includevoidmain(){intx,a,b,c;scanf("%d",&x);a=x/100;b=x/10%10;c=x%10;x=c*100+b*10+a;printf("%d",x);
#includeintmain(){inta,sum=0;scanf("%d",&a);while(a){sum+=a%10;a/=10;}printf("sum=%d\n",sum);return0
inti=2123;intone,two,three,four;one=i%10;//各位two=(i/10)%10;//十位three=(i/100)%10;//百位four=(i/1000)%10
#includeintmain(){inti;voidfun(inta);printf("输入数字:");scanf("%d",&i);fun(i);return0;}voidfun(inta){if
#includeintmain(){inti,n,m;scanf("%d%d",&n,&m);if(n>m){intt=n;n=m;m=t;}printf("fahrcelsius\n");for(i
你是要求用C语言吗?再问:是再答:这个我可以编,但是你地公式写得不清楚。c代表什么,F代表什么。要是一个代表摄氏,一个代表华氏,那肯定是有等号的。你再好好看看。把公式发过来。再问:C代表摄氏温度,F代
#include#includeintmain(){printf("请输入一个正整数:");intn1,n2;boolflag1=false,flag2=false;scanf("%d",&n1);n
#includevoidmain(){inti,j,k,m;printf("inputdata:");scanf("%d",&m);/*输入一个3位数*/i=m/100;j=(m-100*i)/10;
给你一个输出来是正的正三角行图案:/*输出一个正的正三角行图形*/#includevoidmain(){inti,j,x,n,count,k,m,q,p,v;scanf(“%d%d”,&n,&x);c
#includemain(){floatc,h;while(1){printf("PleaseinputtheC:");scanf("%f",&c);if(c!=0){printf("TheHis:%
#include <stdio.h>#include <math.h>int main(void){  
#includeintmain(){intn,sum=0;printf("请输入一个整数:");scanf("%d",&n);while(n){sum=sum+n%10;n/=10;}printf("
#includevoidmain(){\x09inti,n;\x09inta[10];\x09ints,p;\x09printf("n:");\x09scanf("%d",&n);\x09for(i=
#includevoidmain(){\x09intyear;\x09printf("请输入年份:");\x09scanf("%d",&year);\x09if((year%4==0&&year/10
#includemain(){floatf,c;printf("pleaseenterF:");scanf("%f",&f);c=5.0*(f-32.0)/9.0printf("%f",c);}
#include<stdio.h>int main(){ float F,c; &nbs
#includevoidmain(){intc;floatF;printf("C\tF");for(c=0;c
#includeintmain(){floatF,c;while(1){printf("请输入华氏温度:");scanf("%f",&F);c=5*(F-32)/9;printf("摄氏温度为:%0.