Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
string input = Console.ReadLine();
string[] intlist = input.Split(new char[] {',', ' '});
foreach(string item in intlist)
{
Console.WriteLine(Convert.ToInt32(item));
}
integer :: I,j,k ,l(3)
read(*,*) I, j, k, l
read <$> getLine :: IO [Integer]
-- reading space separated list of ints
map read . words <$> getLine :: IO [Int]
process.stdin.on('data', processLine)
function processLine (line) {
const string = line + ''
console.log(string)
}
const ints = await new Promise(resolve => {
let string = ''
process.stdin
.on('data', data => string += data.toString())
.on('close', () => resolve(string.split('\n').map(line => Number.parseInt(line))))
})
(read)
@x = map {chomp; $_} <>;
list(map(int, input().split()))
numbers = [int(x) for x in input().split()]
STDIN.read.split.map(&:to_i)