Basic Data Types

Sort by

recency

|

1558 Discussions

|

  • + 0 comments
    #include <iostream>
    #include <iomanip>
    using namespace std;
    int main() {
        int i;
        long l;
        char c;
        float f;
        double d;
        cin >> i >> l >> c >> f >> d;
        cout << i << endl;
        cout << l << endl;
        cout << c << endl;
        cout << fixed << setprecision(3) << f << endl;
        cout << fixed << setprecision(9) << d << endl;
        return 0;
    }
    
  • + 0 comments

    include

    include

    include

    using namespace std;

    int main() { int a; long b; char c; float d; double e; cin >> a; cin >> b; cin >> c; cin >> d; cin >> e; cout<

    return 0;
    

    }

  • + 0 comments

    include

    include

    include

    using namespace std;

    int main() { int a; long b; char c; float d; double e; cin >> a; cin >> b; cin >> c; cin >> d; cin >> e; cout<

    return 0;
    

    }

  • + 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;
    }
    
  • + 0 comments

    Where is the question? How I will know what is the task?