Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Substruct actually makes multiply #4

Open
w01fgang opened this issue May 15, 2017 · 0 comments
Open

Substruct actually makes multiply #4

w01fgang opened this issue May 15, 2017 · 0 comments

Comments

@w01fgang
Copy link

There is a typo in calculator.subtract

app.get('/', function (req, res) {
    var a = parseInt(req.query.a) || 1;
    var b = parseInt(req.query.b) || 1;
    var result = a * b;

    console.log('Subtract: a(%d) - b(%d) = %d', a, b, result);

    res.json({ result: result, a: a, b: b, operation: '-' });
})
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant