Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <math.h>
- #include <stdio.h>
- int main()
- {
- int n=0;
- float y;
- const float h=0.05;
- printf("x \t y\n");
- for ( float x=2; x<=3; x=x+0.05) {
- y=x*x-logf(1+x)-3;
- n++;
- printf(" %0.2f \t %0.4f \n",x ,y);
- }
- printf("\nКоличество повторений цикла %d", n);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement