Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- using namespace std;
- main()
- {
- int a;
- int b;
- cout <<"Podaj pierwsza liczbe"<<endl;
- cin >>a;
- cout <<"Podaj druga"<<endl;
- cin >>b;
- if(a>b)
- {
- for(a==a; a>=b; a--)
- {
- if(a%2 == 0)
- {
- cout<<a<<endl;
- }
- }
- a++;
- }
- if(b>a)
- {
- for(b==b; b>=a; b--)
- {
- if(b%2 == 0)
- {
- cout<<b<<endl;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement