Vla_DOS

// Група КІ-11 Петрук А. М. варіант-13. Лаб-4.1

Nov 30th, 2022
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. // Група КІ-11 Петрук А. М. варіант-13. Лаб-4.1
  2.  
  3. #include <iostream>
  4. #include <cmath>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     float y = 0, t = 0;
  11.     // A
  12.     for (t = 2.5; t <= 9; t+=0.8){
  13.         y = (1.5 * t - log10(2 * t)) / (3 * t + 1);
  14.         cout << y << endl;
  15.     }
  16.     cout << endl;
  17.     // B
  18.     for (t = 6; t >= 0.8; t-=1.2){
  19.         y = (1.5 * t - log10(2 * t)) / (3 * t + 1);
  20.         cout << y << endl;
  21.     }
  22.    
  23.     return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment