How to take Text Input from a user

Hey , can this input method will also be used to take numbers as input and then perform some calculations on them after storing them in variable?