#include using namespace std; int main() { int firstValue; int secondValue; int i{1}; int changeAmount{0}; cout <<"Enter a first value =>"; cin >> firstValue; cout <<"Enter a second value =>"; cin >> secondValue; if (firstValue > secondValue) { changeAmount = -1; } else { changeAmount = 1; } i = firstValue; while( i != secondValue) { cout << " i = " << i << endl; i += changeAmount; } cout << " i = " << i << endl; return 0; }