TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Simple Java Program
Krishna Rajput Singh
Jul 30
2016
Code
478
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
java program images.
class
Test
{
public
static
void
main(String[]args)
{
int
y=
0
;
int
x=
0
;
for
(
int
z=
0
;z<
5
;z++)
{
if
((++x>
2
) && (++y>
2
))
{
x++;
}
}
System .out.println(x+
""
+y);
}
}
Conditional Java program
Java