daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. process.stdin.resume()
  2. process.stdin.setEncoding('utf8')
  3.  
  4. console.log('What\'s your age ? ')
  5. process.stdin.on('data', (num) => {
  6.     if(num<99 && num>0){
  7.         let result = 2019-num;
  8.         console.log('Ton année de naissance est '+ result+" .")
  9.     }
  10.   process.exit()
  11. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top