Program stop when use scanf statement

Note-: need to stop running program manually