Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace std;
- int main()
- {
- int liczba;
- cout<<"Podaj parzysta liczbe: ";
- cin >> liczba;
- if ((liczba%2)==0)
- {
- for (int i=0; i<=(liczba+200);i=liczba+2)
- {
- cout<<liczba<<endl;
- }
- }
- else
- cout<<"Podana liczba jest nieparzysta"<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement