Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Група КІ-11 Петрук А. М. варіант-13. Лаб-4.1
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- float y = 0, t = 0;
- // A
- for (t = 2.5; t <= 9; t+=0.8){
- y = (1.5 * t - log10(2 * t)) / (3 * t + 1);
- cout << y << endl;
- }
- cout << endl;
- // B
- for (t = 6; t >= 0.8; t-=1.2){
- y = (1.5 * t - log10(2 * t)) / (3 * t + 1);
- cout << y << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment