Programming Languages
Java
Objective
Jan 02, 2013
What is the correct output?
class Solvemyques
{
public static void main(String [] args)
{
int a= 0;
int b= 0;
for (int c = 0; c < 5; c++)
{
if (( ++a > 2 ) && (++b > 2))
{
a++;
}
}
System.out.println(a);
}
}
Detailed Explanation
No explanation available. You can start a discussion.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts