What will be the output of following function when invoked ?
public void print()
{
char ans='a'; int x=0;
do
{
x++;
System.out.print(x+"\t"+ans);
ans+=2;
}
while(x>7)
System.out.println ("Loop Terminates");
}
Neha Chaudhari
Level 1
Output
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Mayank Chandratre
20 February, 02:44
It will be
1 a
0