Last active
October 28, 2015 23:17
-
-
Save Skyost/bec7d4704b12b1622849 to your computer and use it in GitHub Desktop.
InfiniteLoop.agg → Java, JS and PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xyz.algogo; | |
import java.util.Scanner; | |
/** | |
* <h1>Infinite Loop</h1> | |
* <p>This is a beta feature : there are still remaining some bugs ! | |
* <br><b>PS :</b> Sorry for indentation !</p> | |
* | |
* @author Skyost. | |
*/ | |
public class InfiniteLoop { | |
public static final void main(final String[] args) { | |
final Scanner input = new Scanner(System.in); | |
int i; | |
i = 0; | |
while(true) { | |
i = i + 1; | |
System.out.println(i); | |
} | |
input.close(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* NAME : Infinite Loop | |
AUTHOR : Skyost | |
This is a beta feature : there are still remaining some bugs ! | |
PS : Sorry for indentation ! */ | |
var i = 0; | |
i = 0; | |
while(true) { | |
i = i + 1; | |
alert(i); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* NAME : Infinite Loop | |
AUTHOR : Skyost | |
This is a beta feature : there are still remaining some bugs ! | |
PS : Sorry for indentation ! */ | |
$i = 0; | |
$i = 0; | |
while(true) { | |
$i = $i + 1; | |
echo $i . '<br>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment