Java program 10

March 29, 2022 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp
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

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion