Skip to content

Instantly share code, notes, and snippets.

@theanam

theanam/number.js

Created Sep 29, 2018
Embed
What would you like to do?
LWHH JavaScript Course Number Project
let x = parseInt(process.argv[2]);
let y = parseInt(process.argv[3]);
console.log(x+y);
@alkayesdev

This comment has been minimized.

Copy link

@alkayesdev alkayesdev commented Oct 2, 2018

let x = parseInt(process.argv [2]);
let y = parseInt (process.argv[3]);
console.log (x - y);
console.log (x / y);
console.log (x * y);

@iamsohel

This comment has been minimized.

Copy link

@iamsohel iamsohel commented Oct 11, 2018

let x = parseInt(process.argv[2]);
let y = parseInt(process.argv[3]);
console.log(Add : ${x+y}\nSub: ${x-y}\nMul ${x*y}\nDiv ${x/y});

@smamir

This comment has been minimized.

Copy link

@smamir smamir commented Oct 12, 2018

let x = parseInt(process.argv[2]);
let y = parseInt(process.argv[3]);

console.log(x-y)
console.log(x*y)
console.log(x/y);

@shahidaac

This comment has been minimized.

Copy link

@shahidaac shahidaac commented Oct 30, 2018

let p =parseInt(process.argv[2]);
let q= parseInt(process.argv[3]);

console.log(p + q); //add
console.log(p - q); //subs
console.log(p * q); //mult
console.log(p / q); //div

@JubairSayeedLinas

This comment has been minimized.

Copy link

@JubairSayeedLinas JubairSayeedLinas commented Nov 2, 2018

let x=parseInt(process.argv[3]);
let y=parseInt(process.argv[2]);

console.log(x+y);
console.log(x-y);
console.log(x*y);
console.log(x/y);

@Abedin022

This comment has been minimized.

Copy link

@Abedin022 Abedin022 commented Nov 12, 2018

let x = parseInt(process.argv[2]);
let y = parseInt(process.argv[3]);

console.log("Add:", x+y, "Sub:", x-y, "Mul:", x*y, "Div:", x/y);

@syedanam

This comment has been minimized.

Copy link

@syedanam syedanam commented Dec 11, 2018

let x = parseInt(process.argv[2]);
let y = parseInt(process.argv[3]);
console.log(x+y);
console.log(x-y);
console.log(x*y);
console.log(x/y);

@mazhar1987

This comment has been minimized.

Copy link

@mazhar1987 mazhar1987 commented Sep 5, 2019

let x = parseInt(process.argv[2]);
let y = parseInt(process.argv[3]);

console.log(x + y);
console.log(x - y);
console.log(x * y);
console.log(x / y);
console.log(x % y);

@hridoy-islam

This comment has been minimized.

Copy link

@hridoy-islam hridoy-islam commented May 20, 2020

let x = parseInt(process.argv[2]);
let y = parseInt(process.argv[3]);

console.log(x + y);
console.log(x - y);
console.log(x * y);
console.log(x / y);
console.log(x % y);

@jannatulNayem

This comment has been minimized.

Copy link

@jannatulNayem jannatulNayem commented Jun 20, 2020

console.log(process.argv);
let x = Number.parseInt(process.argv[2]);
let y = Number.parseInt(process.argv[3]);
console.log(x + y);
console.log(x - y);
console.log(x * y);
console.log(x / y);

@kmya

This comment has been minimized.

Copy link

@kmya kmya commented Jul 3, 2020

let x = parseInt(process.argv[2]);
let y = parseInt(process.argv[3]);
console.log(x+y);
console.log(x-y);
console.log(x*y);
console.log(x/y);

@musakazim989

This comment has been minimized.

Copy link

@musakazim989 musakazim989 commented Aug 27, 2020

let x = parseInt(process.argv[2]);
let y = parseInt(process.argv[3]);

console.log(x+y);

console.log(x-y);

console.log(x*y);

console.log(x/y);

@saleh-ahm

This comment has been minimized.

Copy link

@saleh-ahm saleh-ahm commented Oct 8, 2020

let x = parseInt(process.argv[2]);
let y = parseInt(process.argv[3]);

console.log(x+y);
console.log(x-y);
console.log(x*y);
console.log(x/y);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.