HackerRank - Java Stdin and Stdout I - Task 2 - With Source Code #rahulvijayan #hackerranksolution

preview_player
Показать описание
HackerRank - Java Stdin and Stdout I - Task 2 - With Source Code

Follow me on:

#RahulVijayan
#hackerrankpush
#hackerranksolutions
#hackerranksolution

/* Most HackerRank challenges require you to read input from stdin (standard input) and write output to stdout (standard output).
Hi 5
Our code will print:
myString is: Hi
myInt is: 5
Alternatively, you can use the BufferedReader class.
Task
In this challenge, you must read integers from stdin and then print them to stdout. Each integer must be printed on a new line. To make the problem a little easier, a portion of the code is provided for you in the editor below.
Input Format
There are lines of input, and each line contains a single integer.
Sample Input
42
100
125
Sample Output
42
100
125 */
Рекомендации по теме
visit shbcf.ru