#include"stdio.h" #include"math.h" void main() {float F,c; scanf("%f",&F); c=5/9*(F-32); printf("%.#include"stdio.h"#include"math.h"void main(){float F,c;scanf("%f",&F);c=5/9*(F-32);printf("%.2f\n",c);}为什么运行的结果都是0.00或-0.

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 21:56:38
#include"stdio.h"#include"math.h"voidmain(){floatF,c;scanf("%f",&F);c=5/9*(F-32);printf("%.#include"

#include"stdio.h" #include"math.h" void main() {float F,c; scanf("%f",&F); c=5/9*(F-32); printf("%.#include"stdio.h"#include"math.h"void main(){float F,c;scanf("%f",&F);c=5/9*(F-32);printf("%.2f\n",c);}为什么运行的结果都是0.00或-0.
#include"stdio.h" #include"math.h" void main() {float F,c; scanf("%f",&F); c=5/9*(F-32); printf("%.
#include"stdio.h"
#include"math.h"
void main()
{float F,c;
scanf("%f",&F);
c=5/9*(F-32);
printf("%.2f\n",c);
}为什么运行的结果都是0.00或-0.

#include"stdio.h" #include"math.h" void main() {float F,c; scanf("%f",&F); c=5/9*(F-32); printf("%.#include"stdio.h"#include"math.h"void main(){float F,c;scanf("%f",&F);c=5/9*(F-32);printf("%.2f\n",c);}为什么运行的结果都是0.00或-0.
把5改成5.0就行了.如果是5的话他会认为你是整除
#include"stdio.h"
#include"math.h"
void main()
{float F,c;
scanf("%f",&F);
c=5.0/9*(F-32);
printf("%.2f\n",c);
}

C语言随机数#include stdio.h#include stdlib.h#include time.hint main(void){int a[5],i;randomize();for(i=0;i #include stdio.h double fun(int m) { // } if(fl(n-i))#include stdio.h#include math.hvoid flat(int n){int i;for(i=2;i sqrt(i)是什么意思啊#includestdio.h#define N 200int main(){int j,i;for(i=2;i 关于素数题(急````在线等#include stdio.h#include math.hmain(){ int i,j,k,Prime=0;for (i=101;i 求素数101-200的#include stdio.h#include math.hvoid main(){int judge(int);int i;for(i=101;i 以下程序的执行结果是:#includestdio.hmain(){int I,s=0;for(i=1;i 我不懂 #include stdio.hvoid main(){int a[3][3],i,j;for (i=0;i 程序题,#includestdio.hmain(){int i,j,k=0,m=0;for(i=0;i 关于C语言中sqrt函数的运用!#include stdio.h#include math.h void main() {int m,i,k,n=0; for(m=101;m error C2018:unknown character #include stdafx.h#include stdio.hvoid main(){int i,j,k,n;printf('water flower'number is:); for(n=100;n #include stdio.h main() { int a[100],n,i,min,t; while(scanf(%d,&n),n>0&&n p=strchr(xx[i],' ');isjap:boolean=false;//amount,p->price,p->t_price);#includestdio.h 在线等len(big_mem)-1;i )#includestdio.hedir=1,prev_dir;nodeStack[j 1]=nodeStack[j]; 计算出1-100的平方根,将结果存于外存,其文件名为“result.c”(C语言)#include stdio.h#include math.h#include stdlib.hvoid main(){ double y;int i;FILE *fp;for(i=1;i #include stdio.h main() { int A,B,C; while (A 求 1-3+5-7+9.-99+101的值#includestdio.hmain(){ int i,j,sum=0;for(i=1,j=1;i switch(++a,#includestdio.hmain(){int i=0,a=0,c=2;for(i=0;i