Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- int num1, num2;
- cout << "Enter in your first number: ";
- cin >> num1;
- cout << endl << "Enter in your second number: ";
- cin >> num2;
- for (int x = num1; num1 <= x<=num2;x++)
- {
- if (x % 2 == 0)
- {
- cout << x << "";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement