从键盘输入一个华氏温度要求输出摄氏温度 公式为c=5 9(F-32)
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/11 09:39:59
可参考如下scanf("%d",&num);printf("%d\n",num/100);printf("%d\n",num%10);---------------------------------
#includemain(){\x09inti,j,m,n,a[10];\x09printf("请输入10个整数:\n");\x09for(i=0;i
#includemain(){inti,j,k1,k2,data[3][4];for(i=0;i
1楼已经有了pascal和vf版本我这里补上c和vb版本c版本#includeintmain(){inti,n;scanf("%d",&n);i=sqrt(n);printf("%d",i);syst
稍微修改了一下:#includevoidmain(){inta[3][4],i,j,max,b,c;printf("请输入一个3*4的整数矩阵:\n");for(i=0;i再问:为什么第二次还要
给你写了个,运行通过,你看看吧,记得采纳哦O(∩_∩)O~#includeintmain(){\x09intnum,i=0;\x09printf("pleaseinputanumble:");\x09
importjava.util.Scanner;publicclassCircle{ publicstaticvoidmain(String[]args)
#includeintmain(void){intnum,hundred,ten,indiv;printf("请输入一个三位整数:");scanf("%d",&num);hundred=num/100
importjava.util.Scanner;publicclassTest{publicstaticvoidmain(String[]args){System.out.print("请输入第一个整
#include#includeintmain(){scanf("%lf",&k);printf("%d\n",(int)sqrt(k));}
#includevoidmain(){floatF;floatC;scanf("%f",&F);printf("%f",C=5/9*(F-32);}采纳吧少年,这题我们刚做过
#include#includeintmain(){floata,b;printf("plesaseenteranumber\n");scanf("%f",&a);if(a>=1000){printf
怎么个不对法?逻辑很正确,表达也严谨.有什么不对的现象说出来!再问:现象是输入1,2,3时输出的是2我刚刚把else那句删了程序就对了还是谢谢你
cleaaccept"输入字符串:"toChNL=len(Ch)Cnh=""fori=1toNLCa=substr(Ch,i,1)ifasc(ca)>=48andasc(ca)
#include<stdio.h>int main(){ float F,c; &nbs
#includeintmain(){floatF,c;while(1){printf("请输入华氏温度:");scanf("%f",&F);c=5*(F-32)/9;printf("摄氏温度为:%0.
#include#includeintmain(void){floatc,f;printf("请输入华氏度:\n");scanf("%f",&f);c=(f-32)/9*5;printf("%.2f℉
#include#includeusingnamespacestd;intmain(intargc,char*argv[]){inti,j;cin>>i;if(i{j=sqrt(i);cout
#includeintmain(){floatc,f;printf("请输入华氏温度:");scanf(("%f",&f);c=5*(f-32)/9;printf("摄氏温度为:%.2f\n",c);