alexlucas83
3/19/2019 - 10:51 AM

node

process.stdin.resume()
process.stdin.setEncoding('utf8')

console.log('how old are you ? ')
process.stdin.on('data', (number) => {
  let result = 2019-number
if(number<=99 && number>=0){
    console.log(result);
    }
    else{
        console.log('error');
    }
  process.exit()
})