标签:print temp return ret include code pre printf class
1 #include<stdio.h> 2 int main() 3 { 4 int i; 5 float m,n,temp,sum; 6 scanf("%f %f",&m,&n); 7 temp=m; 8 sum=m; 9 for(i=2;i<=n;i++){ 10 sum+=temp; 11 temp/=2; 12 } 13 temp/=2; 14 printf("%.2f %.2f",temp,sum); 15 16 return 0; 17 }
标签:print temp return ret include code pre printf class
原文地址:https://www.cnblogs.com/stelayuri/p/12203797.html