Basic Data Types

  • + 0 comments
    #include <cmath>
    #include <cstdio>
    #include <vector>
    #include <iostream>
    #include <algorithm>
    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%.3f \n%.9lf", i,l,c,f,d);
    
        return 0;
    }