programs of java
examples of java programs,these programs are very useful to Beginners,and students to learn java
Wednesday, 19 July 2017
To print infinite numbers using for loop
public class Infinite {
public static void main(String[] args) {
for(;;){
for(int i=0;;i++)
{
System.out.println(i);
} }
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment