Taking input
Submissions: 7295   Accuracy:


  Difficulty: Easy   Marks: 2
Associated Course(s):   Fork CPP   Fork Java

Before implementing any algorithm, we should be thorough with taking inputs. Here, we will learn how to read inputs.
You are given two inputs: a(integer), and b(string). You need to take the input and print a and b separated by a space.

Input Format:
First line of input conatins number of testcases T.  T testcases follow. For each testcase, there will be one line of input containing a and b.

Output Format:
For each testcase, print a and b separated by a space.

Your Task:
This is a function problem. You need to write the command to take input of a and b inside the function inputData()

1 <= T <= 10
1 <= a <= 106



5 Hello
7 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.