I tried to code in c++ to get the range of two integers, but unfortunately it didn't show the range, just the input of two numbers. Kindly help me if there is something wrong in my code. TIA
#include <iostream>
using namespace std;
int a, b;
int main(){
cout << "Input your first number: ";
cin >> a;
cout << "Input your second number: ";
cin >> b;
for (int i = a; i<=b; i++){
cout << "Range of two integers are: " << endl;
cout << i;
}
return 0;
}