Taking input - Java
Submissions: 12900   Accuracy:

47.78%

  Difficulty: Easy   Marks: 2

Before implementing any algorithm, we should be thorough with taking inputs. Here, we will learn how to read inputs.
You are given four inputs: a(integer), b(float ), c(long), d(byte), s(string) respectively. You need to take the input and print a and b separated by a space.
Read : Java I/O

Input Format:
First line of input conatins T, number of testcases. For each testcase, there will be five lines of input containing a, b, c, d, s.

Output Format:
For each testcase, print a, b, c, d, s in a new line.

User Task:
Your task is to complete the provided function IOFunction().

Constraints:
1 <= T <= 10
1 <= a <= 106

Input:
1
5
2.5
6546854

120
geek for geeks

Output:
5
2.5
6546854

120
geek for geeks

** For More Input/Output Examples Use 'Expected Output' option **

Author: Dhiman Mayank


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.