首页 > 其他分享 >task2

task2

时间:2022-10-12 09:48:21浏览次数:51  
标签:task2 %. ans 2f printf include

#include <stdio.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;
    
        
}

 

标签:task2,%.,ans,2f,printf,include
From: https://www.cnblogs.com/lht22MoonHalo/p/16783412.html

相关文章

  • task2.3
    #include<stdio.h>#include<math.h>intmain(){doublex,ans;while(scanf("%lf",&x)!=EOF){ans=9.0/5.0*x+32.0;printf("摄氏度c=%.2lf;华氏度f=%.2lf\n",x,ans)......