Advertisement
Guest User

Lab3.2

a guest
Nov 18th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 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.   do {
  15.     y=a*a-logf(1+a)-3;
  16.     printf(" %0.2f \t %0.4f \n",a ,y);
  17.     a=a+h;
  18.     }
  19.   while (a<=b);
  20.   return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement