-
What is the output of this program if input given is “InterviewMania”?
import java.util.*;
import java.io.*;
public class IO_Example
{
public static void main(String args[]) throws IOException
{
char ch;
BufferedReader obj = new BufferedReader(new InputStreamReader(System.in));
do
{
ch = (char) obj.read();
System.out.print(ch);
} while(ch!='w');
}
}
-
- InterviewMania
- Mania
- Interview
- ManiaInterview
- None of these
Correct Option: C
Interview