View Code of Problem 72

#include<stdio.h>
int main(){
	float n,m,t=m/2;
	scanf("%f%f",&m,&n);
	for (int i=2;i<=n;i++) {
	 m+=2*t;
		t/=2;
	}
	printf("%.2f %.2f\n", t, m);
return 0;
}

Double click to view unformatted code.


Back to problem 72