Post History
Ruby, 28 bytes puts"puts #{gets}+gets.to_i" puts"puts # print P2, which prints #{gets} # P1's input value, interpolated +gets.to_i" ...
Answer
#1: Initial revision
# Ruby, 28 bytes ```ruby puts"puts #{gets}+gets.to_i" puts"puts # print P2, which prints #{gets} # P1's input value, interpolated +gets.to_i" # plus P2's input value ``` For instance, if the input to P1 is 10, then P2 is ```ruby puts 10+gets.to_i ``` [Attempt This Online!](https://ato.pxeger.com/run?1=m72kqDSpcsGCpaUlaboWewpKS4qVQISCcnV6aklxrTaI1CvJj89UgiiBqlywyNAAwgIA)