Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
A very simple java program for Break Statement
WhatsApp
Alagunila Meganathan
Aug 08
2016
716
0
2
Break.rar
public
class
Break{
public
static
void
main(String[] args){
int
i,j;
System.out.println(
"Prime numbers between 1 to 50 : "
);
for
(i =
1
;i <
50
;i++ ){
for
(j =
2
;j < i;j++ ){
if
(i % j ==
0
)
{
break
;
}
}
if
(i == j)
{
System.out.print(
" "
+ i);
}
}
}
}
java
break
Up Next
A very simple java program for Break Statement