Need help with floating point values
I am fairly new at C++, taking a 10 wk college course on it. I am having to make a program that asks the user for a number between 5 and 10. then when the number is accepted, you are to take the floating value of the number entered, and ask for that many more numbers. The problem is, I am not sure how you would go about accepting that floating point value. This is what I have so far, but I am stuck from here. Anyone have any guidance? Sorry if I did something incorrectly, im a noob to this stuff. I am not asking anyone to do this for me, or code it up. Just point me in the righht direction and I can figure it out. Im just stumped at this point.
Code:
int main() {
int num;
do {
cout << "Enter a value in the range of 5 to 10: ";
cin >> num ;
if (num < 5 || num > 10)
cout << "The value entered is not in the proper range; please try again"
<< endl;
cout << " " << endl;
} while (num < 5 || num > 10);
cout << "You entered " << num << endl;
return 0;
}