Problem Statement:
Take input from command prompt.
Language:
C and Java
Platform:
Command Prompt
Command:
[Program] [Input]
Expected Input:
[Input] : Any Message
Note: message is always separated by Space!
Expected Output:
Message 1: [Input 1]
Message 2: [Input 2]
...
Example:
Interface in C:
C:\Program> ./read_cmd.exe reading from cmd
Interface in Java:
C:\Program> java read_cmd reading from cmd
Output (Same for both C and Java):
Message 1: reading
Message 2: from
Message 3: cmd