Advertisement
Guest User

Lab3.1

a guest
Nov 18th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <math.h>
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6.   int n=0;
  7.   float y;
  8.   const float h=0.05;
  9.   printf("x \t y\n");
  10.   for ( float x=2; x<=3; x=x+0.05) {
  11.     y=x*x-logf(1+x)-3;
  12.     n++;
  13.     printf(" %0.2f \t %0.4f \n",x ,y);
  14.     }
  15.   printf("\nКоличество повторений цикла %d", n);
  16.   return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement