题解 | #整数的个位#
整数的个位
https://www.nowcoder.com/practice/1c0ce3c9134f45edbcd4343f9d5e320a
const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () => (await iter.next()).value; void async function () { // Write your code here while(line = await readline()){ let tokens = line.split(' '); let a = parseInt(tokens[0]); // let b = parseInt(tokens[1]); // console.log(a + b); let num = parseInt(a%10); console.log(num); } }()