View Code of Problem 115

#include <stdio.h>
#include <math.h>
int main(){
  int n,i;
  int sum1,sum2;
  while (scanf("%d",&n)){
    sum1=0,sum2=0;
    for(i=0;i<n;i++){
      sum1+=pow(2,i);
      
    }
    sum2=n*100000;
    printf("%d %d\n",sum1,sum2);
  
  }



return 0;
}

Double click to view unformatted code.


Back to problem 115