Last active
October 24, 2024 10:33
-
-
Save m1irka/ffa9f714714ba8c229f98b4aed0c1da5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <math.h> | |
| using namespace std; | |
| int main() { | |
| double y; | |
| for (double i = 0.2; i <= 2.2; i += 0.2) | |
| { | |
| y = 1.8 * pow(i, 2) - sin(i) * 10 * i; | |
| cout << "y = " << y << endl; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment