实验2
作者:互联网
#include<stdio.h> #include<stdlib.h> #include<math.h> int main() { double x,ans; scanf("%lf",&x); ans=pow(x,365); printf("%.2f的365次方:%.2f\n",x,ans); return 0; }
#include<stdio.h> #include<stdlib.h> #include<math.h> int main() { double x,ans; while(scanf("%lf",&x)!=EOF) { ans=pow(x,365); printf("%.2f的365次方:%.2f\n",x,ans); printf("\n"); } return 0; }
#include<stdio.h> #include<math.h> int main() { double c,f; while(scanf("%lf",&c)!=EOF) { f=9*c/5+32; printf("摄氏度c=%.2f时,华氏度f=%.2f\n",c,f); printf("\n"); } return 0; }
标签:%.,ans,2f,实验,365,printf,include 来源: https://www.cnblogs.com/sllych/p/16057102.html