Skip to content

Instantly share code, notes, and snippets.

@Skyost
Last active October 28, 2015 23:17
Show Gist options
  • Save Skyost/bec7d4704b12b1622849 to your computer and use it in GitHub Desktop.
Save Skyost/bec7d4704b12b1622849 to your computer and use it in GitHub Desktop.
InfiniteLoop.agg → Java, JS and PHP
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();
}
}
/* 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);
}
<?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