Skip to content

Instantly share code, notes, and snippets.

@KrystianGraba
Created April 29, 2020 12:04
Show Gist options
  • Select an option

  • Save KrystianGraba/9473810ba5cdcaff34612571a7a2e05b to your computer and use it in GitHub Desktop.

Select an option

Save KrystianGraba/9473810ba5cdcaff34612571a7a2e05b to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int ile;
cout << "Do ktorej liczby wyswietlic liczby parzyste: " << endl;
cin >> ile;
cout << "Liczby parzyste do liczby " << ile << endl;
for (int i = 2; i <= ile;i++) {
if ((i % 2) == 0) {
cout << i << endl;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment