#include<stdio.h> #include<math.h> void main() { float x,y; printf("Please input x\n"); scanf("%f",&x); y=2*x+1; y=(float)pow(y+1,2); printf("%f",y); }
Used a square, we need to add the standard math library functions #include <math.h>
#include<stdio.h> #include<math.h> void main() { float x,y; printf("Please input x\n"); scanf("%f",&x); y=2*x+1; y=(float)pow(y+1,2); printf("%f",y); }
Used a square, we need to add the standard math library functions #include <math.h>