const {createInterface} = require('readline')
const rl = createInterface ({
input: process.stdin,
output: process.stdout
})
rl.question('Input an integer: ', response => {
let n = parseInt (response)
// stuff to be done with n goes here
rl.close()
})
let n: i32 = std::io::stdin()
.lock()
.lines()
.next()
.expect("stdin should be available")
.expect("couldn't read from stdin")
.trim()
.parse()
.expect("input was not an integer");
const {createInterface} = require('readline')
const rl = createInterface ({
input: process.stdin,
output: process.stdout
})
rl.question('Input an integer: ', response => {
let n = parseInt (response)
// stuff to be done with n goes here
rl.close()
})
let n: i32 = std::io::stdin()
.lock()
.lines()
.next()
.expect("stdin should be available")
.expect("couldn't read from stdin")
.trim()
.parse()
.expect("input was not an integer");