|
Post by Josh on Jul 24, 2017 16:56:03 GMT
In this challenge, you must write a program that creates an infinite loop in multiple languages. Extra cool points for a golfed solution and even more extra cool points for a solution that works in more than two languages. See what you can come up with! Please ensure that you show the language names and the amount of characters your solution consists of if it is a golfed solution.
Good luck!
|
|
zelo101
Active Member
Veteran
Posts: 26
ROBLOX Username: Umadekid
|
Post by zelo101 on Jul 25, 2017 10:18:46 GMT
I didn't know what you meant by this but I did a Infinite Loop in brainfudge
BrainF | 8 Characters.
+[>+-<]
Explanation:
+ = Add one to cell 1. [ = Start of loop > = Go to cell 2 + = Add one to cell 2 - = Minus one to cell 2 < = Go to cell 1 ] = End of loop (but this doesn't end the loop since cell 1 is not at zero.)
I couldn't get this in a different language rip
|
|
|
Post by Josh on Jul 25, 2017 19:31:50 GMT
I didn't know what you meant by this but I did a Infinite Loop in brainfudge BrainF | 8 Characters.+[>+-<]
Explanation: + = Add one to cell 1. [ = Start of loop > = Go to cell 2 + = Add one to cell 2 - = Minus one to cell 2 < = Go to cell 1 ] = End of loop (but this doesn't end the loop since cell 1 is not at zero.) I couldn't get this in a different language rip Seems good! I just meant code that would work in multiple languages, so here is an example of code that would work in python and brainf*** while+1:[]
|
|
|
Post by Bit on Jul 25, 2017 20:03:16 GMT
repeat until nil Lua and RBXLua :]
|
|
|
Post by Josh on Jul 26, 2017 12:13:31 GMT
repeat until nil Lua and RBXLua :] What about while 1 do end!1!
|
|
|
Post by AxonMega on Aug 3, 2017 20:11:23 GMT
Java, JavaScript, C, C++, C#, Ruby, PHP, Swift, and Kotlin:
while(true){} --13 characters
do{}while(true) --15 characters
|
|
|
Post by Josh on Aug 7, 2017 9:51:35 GMT
Java, JavaScript, C, C++, C#, Ruby, PHP, Swift, and Kotlin: while(true){} --13 characters do{}while(true) --15 characters c0ol *cough* 1
|
|