Respuesta :

Answer:

# include <iostream>

using namespace::std;

int main()  

{  

   int num;

   do

   {

       

       cout<<"Enter number:";

       cin>> num;

   } while(num<=20 && num >=10);

   cout<<"You entered out of range";

   return 0;

}

Explanation:

Please find the required program in the answer section. And you should know that a do-while loop is used when we want to make sure that the loop runs for at least one time.

ACCESS MORE