Skip to content

Commit

Permalink
Merge pull request #122 from Melancholic/patch-1
Browse files Browse the repository at this point in the history
Create Quine.kt
  • Loading branch information
rishabhgupta03 authored Oct 6, 2020
2 parents 503d7bb + ba88fa6 commit 9574fbc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Kotlin/Quine.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// version 1.1.2

const val F = """// version 1.1.2
const val F = %c%c%c%s%c%c%c
fun main(args: Array<String>) {
System.out.printf(F, 34, 34, 34, F, 34, 34, 34)
}
"""

fun main(args: Array<String>) {
System.out.printf(F, 34, 34, 34, F, 34, 34, 34)
}

0 comments on commit 9574fbc

Please sign in to comment.