Given a string, the task is to extract all the integers from it.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains a string S as input.
For each test case, print all the integers with one space, if the string does not contain any integers, print "No Integers".
geeksforgeeks 12 23 practice
1: Prakhar Agrawal, 2: Manish Kumar Rai, 3: Rishabh Gupta
1 2 3
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.