This site works best with JavaScript enabled!

Example program (Java): numbers to infinity

<< previous page


This program starts at 1 and lists all the numbers to infinity (quite pointless).
1
2
3
4
5
6
7
8
9
10
11
12
class Testprogramm {

public static void main(String [] args) {

	int zahl;
	for(zahl = 1; 1 == 1; zahl = zahl + 1) {

		System.out.println(zahl);
		
	}
	
}
<< previous page
Share this page
Posted on 17.10.2011 | Last modified on 20.11.2016