News for hackers. Stuff that matters.
Re:Fizz Buzz codegolf challenge in 15 languages by dheerajrav on Friday December 14, 2012 @01:08PM (#4922254)
process.stdin.resume(); process.stdin.setEncoding('ascii');

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.