Comments on A number adder, not a death adder
Post
A number adder, not a death adder
Create a program P1 which takes as input a base 10 number N1 (the numbers for the variables are important). Given N1, P1 will print a program P2. P2 will take as input a base 10 number N2 and output N1+N2.
P1 and P2 have to be in the same language.
If your language doesn't have STDIN, for P1 and P2 you may specify a placeholder in your answer where the "input" would be.
The person who creates the shortest scoring program wins. Have fun, everyone!
Vyxal `Ṫ`, 3 bytes …
3y ago
Japt, 4 bytes P1 is: …
3y ago
[Haskell], 64 bytes …
3y ago
Ruby, 28 bytes ```ruby put …
3y ago
[PHP], 58 28 bytes P1: …
3y ago
[Ahead], 10 bytes IO"@O …
3y ago
[C (gcc)], 87 bytes P1: …
3y ago
[Python 3], 58 39 bytes P1: …
3y ago
J, 7 char ``` '+/',": `` …
2y ago
ESCR, 35 bytes show "show [ …
3y ago
J, 21 bytes ```J ,&'+".1!: …
3y ago
Ruby, 25 bytes ```ruby put …
3y ago
Rockstar, 40 bytes list …
3y ago
[Lua], 51 bytes P1: …
3y ago
1 comment thread