Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- float x,h;
- printf("Enter the xmin: ");
- scanf("%f",&x);
- printf("Enter the h: ");
- scanf("%f",&h);
- for (float i=0;i<10;i++,x+=h){
- float a,y;
- printf("Enter the a: ");
- scanf("%f",&a);
- if ((10-x)==fabs(a)){
- y=pow(x,a);
- }else{
- if((10-x)<fabs(a)){
- y=15/a;
- }else{
- y=a-x;
- }
- }
- printf("%f || %f\n",x,y);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement