Interval values
Solved
Last edited on
You have trouble finding integers between x and y?
What's that supposed to mean?
Simple math. a must be equal to or larger than x, and a must be equal to or smaller than y.
1 2 3 4

std::cout << "Possible values for a:\n\n";
for (int a = x; a <= y; a ++)
std::cout << a << "\n";
 
Topic archived. No new replies allowed.