Basic Data Types HackerRank

PHOTO EMBED

Sun Jan 09 2022 14:09:41 GMT+0000 (UTC)

Saved by @jarodnbuus #c++

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

int main() {
    int d; 
    long ld; 
    char ch; 
    float f; 
    double lf; 
    
    
    scanf("%d %ld %c %f %lf",&d,&ld,&ch,&f,&lf);
    printf("%d\n%ld\n%c\n%f\n%lf",d,ld,ch,f,lf);
    return 0;
}
content_copyCOPY

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