title: Validation For Phone Number and Mobile Number
body: <p>I need a c,c++ code for validating a Phone Number(8 Digits- Starting with 2) and Mobile Number(10 Digits- Starts with 9).</p>
  
  <p>Also it should not allow to enter any space, special charcter, as well as charcters.</p>
  
  <p>Here user can enter either phone number or mobile number.</p>
  
  <p>Plese Help in this,</p>
  
  <p>Thanks,</p>