行毎に和を計算するサンプル
Language
JavaScript
Compiler
Node.js 16.14.0
Options
行毎に和を計算するサンプル
$ node prog.js
** input string begin **
1 2 3 4 5
6 7 8 9 10
** input string end **
** calculate the sum for each row **
line: 1 2 3 4 5, total: 15
line: 6 7 8 9 10, total: 40
Exit Code:
0