DEV Community

Cover image for Basic Data Types HackerRank solution in C++
Earning Games
Earning Games

Posted on

1

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)

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

👋 Kindness is contagious

Please show some love ❤️ or share a kind word in the comments if you found this useful!

Got it!