Skip to content

Instantly share code, notes, and snippets.

@m1irka
Last active October 24, 2024 10:33
Show Gist options
  • Select an option

  • Save m1irka/ffa9f714714ba8c229f98b4aed0c1da5 to your computer and use it in GitHub Desktop.

Select an option

Save m1irka/ffa9f714714ba8c229f98b4aed0c1da5 to your computer and use it in GitHub Desktop.
#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