Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let input = [
- '3', // the input is always a string, so it's '3' and not 3
- '4',
- '11'
- ];
- let print = this.print || console.log;
- let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
- let n1 = Number(gets());
- let n2 = Number(gets());
- let n3 = Number(gets());
- let sum = n1 + n2 + n3;
- print(sum);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement