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.
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.
For each testcase, print a and b separated by a space.
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
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.