SOURCE CODE
Home
C & C++
JAVA
HTML
ASP.NET
XML
PROJECT
TIPS & TRICKS
CONTACT US
Page
Code For Print integers In JAVA
class Integers {
public static void main(String[] arguments) {
int c; //declaring a variable
/* Using for loop to repeat instruction execution */
for (c = 1; c <= 10; c++) {
System.out.println(c);
}
}
}
OUTPUT
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment