Post History
C (gcc), 87 bytes P1: i;main(){scanf("%d",&i);printf("i;main(){scanf(\"%%d\",&i);printf(\"%%d\",%d+i);}",i);} Try it online! Generated P2 for input 10: i;main(){scanf("%d",&i...
Answer
#1: Initial revision
# [C (gcc)], 87 bytes P1: <!-- language-all: lang-c --> i;main(){scanf("%d",&i);printf("i;main(){scanf(\"%%d\",&i);printf(\"%%d\",%d+i);}",i);} [Try it online!][TIO-kt6y446b] Generated P2 for input 10: <!-- language-all: lang-c --> i;main(){scanf("%d",&i);printf("%d",10+i);} [Try it online!][TIO-kt6y59ew] [C (gcc)]: https://gcc.gnu.org/ [TIO-kt6y59ew]: https://tio.run/##S9ZNT07@/z/TOjcxM09Ds7o4OTEvTUNJNUVJRy1T07qgKDOvBMo3NNAGitT@/29oDAA "C (gcc) – Try It Online" [C (gcc)]: https://gcc.gnu.org/ [TIO-kt6y446b]: https://tio.run/##S9ZNT07@/z/TOjcxM09Ds7o4OTEvTUNJNUVJRy1T07qgKDOvBMhHk49RUlVNiUFRAhNSTdEGCtYq6YDI//8NDQA "C (gcc) – Try It Online"