Skip to main content

Basic Data Types C++ - hackerrank


Basic Data Types

 https://www.hackerrank.com/challenges/c-tutorial-basic-data-types/problem



#include <iostream>
#include <cstdio>
using namespace std;


int main()
{

int i;
long l;
char c;
float f;
double d;



scanf("%d %ld %c %f %lf", &i, &l, &c, &f, &d);

printf("%d\n%ld\n%c\n%0.3f\n%0.9lf\n", i, l, c, f, d);

return 0;


}