-
What is the output of this program if input given is ‘prstquvwxyz’?
import java.util.*;
import java.io.*;
public class Main
{
public static void main(String args[]) throws IOException
{
char c;
BufferedReader obj = new BufferedReader(new InputStreamReader(System.in));
do
{
c = (char) obj.read();
System.out.print(c);
} while(c != 'q');
}
}
-
- prstquvwxyz
- prstquv
- prstq
- quvwxyz
- None of these
Correct Option: C
prstq