Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Fizz Buzz codegolf challenge in 15 languages. Parent comment
process.stdin.on('data', function (input) { numbers = input.split("\n"); sum = parseInt(numbers[0]) + parseInt(numbers[1]) process.stdout.write(sum+"\n"); });
this is a sample code that takes a two digit integer and prints its sum. Can you use this format and see if it works?
There are no comments on this comment yet.
process.stdin.on('data', function (input) { numbers = input.split("\n"); sum = parseInt(numbers[0]) + parseInt(numbers[1]) process.stdout.write(sum+"\n"); });
this is a sample code that takes a two digit integer and prints its sum. Can you use this format and see if it works?