Advertisement
Guest User

Lab3.2

a guest
Nov 18th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. #include <math.h>
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6.     float y, h=0.05, a, b, x;
  7.     printf("Введите а\t");
  8.     scanf ("%f", &a);
  9.     printf("Введите b\t");
  10.     scanf ("%f", &b);
  11.     printf("Введите h\t");
  12.     scanf ("%f", &h);
  13.     printf("x \t y\n");
  14.     while (a<=b)
  15.     {
  16.         y=a*a-logf(1+a)-3;
  17.         printf(" %0.2f \t %0.4f \n",a ,y);
  18.         a=a+h;
  19.     }
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement