Taking input - Java
Easy Accuracy: 47.78% Submissions: 19894 Points: 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

Example 1:

Input:
5
2.5
6546854
120
geek for geeks

Output:
5
2.5
6546854
120
geek for geeks

 

Example 2:

Input:
6
3.5
7546854
220
suryansh is Legendary

Output:
6 
3.5 
7546854 
220 
suryansh is Legendary

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

Constraints:
1 <= a <= 106

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.