How to use M-<Number> to type a digit?

emacs

Solution

Use C-u to terminate the numeric prefix:

M-40 C-u 0

Problem

I came across this problem in below situation: I am trying to enter fourty `0`s. So I pressed: M-40 0. However I ended up with four hundred instances of my next keystroke. Is there a solution for this?

Original source