Блог пользователя islam_hmam

Автор islam_hmam, история, 5 лет назад, По-английски

this code give me run time error i dont know why ,This program for get sum of any number digits by java

https://ideone.com/e.js/WboQW1

i try it in netbeans and dont give any wrong

https://codeforces.com/group/bb2AzpRPk4/contest/233552/problem/H

  • Проголосовать: нравится
  • -14
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

If the error happens on the first test, it may be because the problem requires reading from file, and you try to read from the standard input. It's empty, hence in.next() fails. It happens while program is running, hence the name "run-time error".

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Nice spam to recent actions.