what is the problem while defining it by users it is not working so any of you have a solution for this issue...
#include<iostream>
using namespace std;
int main()
{
int x;
cout<<"Enter the value of x =";
cin>>x;
for(int x; x < 10; x++)
{
cout << x << endl;
}
return 0;
}