PROGRAM:
public class
ForLoop {
public static void
main(String args[])
{
int c;
for(c=1; c<=10;
c++)
{
System.out.println(c);
}
}
}
OUTPUT:
1
2
3
4
5
6
7
8
9
10
Ask a study question in English or Hindi. I will find relevant passages from our notes.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion