You are given a number A in Kilometers. Convert this into B: Meters and C: Centi-Metres.
Input Description:
A number "A" representing some distance in kilometer is provided to you as the input.
Output Description:
Convert and print this value in meters and centimeters.
Sample Input :
2
Sample Output :
2000
200000
const readline = require('readline');
const inp = readline.createInterface({
input: process.stdin
});
const userInput = [];
inp.on("line", (data) => {
userInput.push(data);
});
inp.on("close", () =>
{var a = parseInt(userInput[0]);
var b = (a*1000);
var c=(b*100);
console.log(b);
console.log(c);
});
Comments
Post a Comment