Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int num = 0;
- int min = 0;
- int max = 0;
- cout << "min" << endl;
- cin >> min;
- cout << "max" << endl;
- cin >> max;
- while (min <= max)
- {
- if (min % 2 == 0)
- {
- num += min;
- }
- cout << "num: " << num << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement