DEV Community

Cover image for Basic Data Types HackerRank solution in C++
YTTMP3
YTTMP3

Posted on

Basic Data Types HackerRank solution in C++

Today we will give you the Basic Data Types HackerRank solution in C++.

Question
Input Format

The input format consists of int, long int, character, float and double.

Output Format

Print each element on a new line in the same order it was received as input.

Note: I have used scanf and printf in my solution, you can use cin and cout too, but if you have to take numbers in million and want to print it out than scanf and printf are faster.

Example

Input: 2 345345345 a 45.3 34323.23423435
Output must be all in separate lines
2
345345345
a
45.3
34323.23423435
Basic Data Types HackerRank solution in C++

To get the Answer of the above problem visit
[https://hecodesit.com/basic-data-types-hackerrank-solution-in-c/]

Top comments (0)