Some C++ data types, their format specifiers, and their most | HackerRank

 Some C++ data types, their format specifiers, and their most HackerRank


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

int main() {
 
    int n;
    long  ln;
    char a;
    float f;
    double d;
    cin>>n>>ln>>a>>f>>d;
     printf("%d\n%ld\n%c\n%f\n%lf\n", n, ln, a, f, d);
    return 0;
}

Passed Compiler

No comments: