Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. int main()
  5. {
  6. int num1, num2;
  7.  
  8. cout << "Enter in your first number: ";
  9. cin >> num1;
  10. cout << endl << "Enter in your second number: ";
  11. cin >> num2;
  12.  
  13. for (int x = num1; num1 <= x<=num2;x++)
  14. {
  15. if (x % 2 == 0)
  16. {
  17. cout << x << "";
  18. }
  19. }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement