Integers and strings



So I am making a maths quiz code but that is unimportant, I am looking for a way to display a message and repeat the question when the user enters a letter not a number (nothing at all is optional although more difficult), I can't post my actual code for plagiarism reasons but I would greatly appreciate the help


infinite loop
    get input
    if input is ok
        break out of the loop