View Code of Problem 72

#include<stdio.h>
int main(){
float m,h,sum=0;
int i,j,n;
scanf("%f%d",&m,&n);
  while(n--){
  sum=sum+m;
  m=m/2;

  
  }
printf("%.2f %.2f",m,sum);
}

Double click to view unformatted code.


Back to problem 72