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.

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

Constraints:
1 <= a <= 106

### Editorial

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