View Code of Problem 69

# include<stdio.h>
float t(float * i,float * j)
{
  if(*i<1)
  {
    *j = *i;
  }
  else if(*i>=1&&*i<10)
  {
    *j =2**i-1; 
  }
  else
  {
    *j = 3**i-11;
  }
  return 0;
}
int main(void)
{
  float x,y;
  scanf("%f",&x);
  t(&x,&y);
  printf("%f",y);
  return 0;
}

Double click to view unformatted code.


Back to problem 69