Skip to content

Instantly share code, notes, and snippets.

@vlaleli
Created October 24, 2024 10:06
Show Gist options
  • Select an option

  • Save vlaleli/369fa3c9b4f1e7320d711a33663595f3 to your computer and use it in GitHub Desktop.

Select an option

Save vlaleli/369fa3c9b4f1e7320d711a33663595f3 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int y;
for (int i = 2; i <= 4; i++)
{
y = pow(2, i) - 2 * pow(i, 2) - 1;
cout << "y=" << y << endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment