DEV Community

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

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay